yum install gcc doesn't set the lastest gcc ver 4.3.x
I'm using CentOS release 4.5 (Final), from /etc/redhat-release.
I need gcc 4.3.x, so firstly I downloaded it and did ./configure
but there were errors.
However, the result was not gcc 4.3.x but 3.4.6.
is consigered as the lastest.
What should I do?
Ok, with most major packages RHEL/Centos will not do an upgrade across a major revision. So they will not upgrade from gcc 3.4 to gcc 4.x or phpX to phpX+1. With Gcc there is an additional problem (vs other packages) in that the entire system is built using a specific version of GCC. If you replace Gcc 3.4 with GCC 4.X you will break your entire install. You can however add(vs replacing) an additional GCC version to the system, but anything you compile with that new version of GCC to run on that machine will have to be compiled completely statically, because if you do not you will run into unresolvable dependency issues. I believe(not sure) even RHEL/Centos5 is still running 4.1. Why do you specifically need 4.3?
Thanks a lot indeed.
The reason that I want to set up gcc 4.3.x is to apply a tool in my system,
of a new version which requires gcc 4.3.x, but if by that background using
the recent version at CentOS is not recommandable, then I would just use
the tool of old version.
Actually I do not what 'statical compile' means, but I feel like that if the
tool is not a MUST-USE item, it is reasonable not to use that, and I should be
just going to go with the old version.
Then, however, if I would meet the situation where I unavoidably need gcc 4.3.x or higher,
then I should use 'statical compile'. At least unless the policy or condition regarding
CentOS were changed.
In addition, is it possible to upgrade from CentOS 4.5 to higher version freely?
Otherwise I should purchase a package and install it entirely again onto the system?
Centos is always free to download/update. The jump from 4.x to 4.x+1 occurs when you do a full yum update. When you do a full X.Y to X+1.Y they still advise doing a clean install. Having cleaned up a number of people's messes that tried to jump major revision (4.7to 5.0) via yum, I would strongly suggest doing a clean install. In the long run a clean install will save you time. To be clear, I am fairly certain that even the most current RHEL/Centos(5.3 should be out in early January) is still only using gcc 4.1. Here is the site to find a mirror to download Centos 5.X:
|All times are GMT -5. The time now is 12:49 AM.|