gcc4 install / upgrade from v3.
my current version of gcc is "gcc version 3.4.6 20060404 (Red Hat 3.4.6) I need to upgrade to v41.2. I downloaded the rpms for RedHat v4 2.6.9-100.ELsmp. I executed rpm -ivh gcc4-c++-4.1.2-44.EL4_8.1.x86_64.rpm, gcc4-java-4.1.2-44.EL4_8.1.gcc4-gfortran-4.1.2-44.EL4_8.1.x86_64.rpm, x86_64.rpm, libmudflap-devel-4.1.2-44.EL4_8.1.x86_64.rpm. Each time the system returns that the rpm is already installed. no errors occurred duringhte install. yet gcc -v indicates that gcc is still at v3. ANy help.
|
The "gcc4-c++-4.1.2-44.EL4_8.1" is not an update : Is an extra compiler.
Providing /usr/bin/gcc4 , /usr/bin/g++4 : 'gcc4 -v' and 'g++4 -v' will work. ( You can have as many different compilers as you want, installed at the same time.) Using the gcc4 compiler, examples : 1) export CC=gcc4 CXX=g++4 && ./configure && make 2) gcc4 -o file file.c .. |
gcc upgrade
Ok, thanks, that clears up a lot. Is there an upgrade /update to gcc3.4.6?
|
WHAT os is this ????
from your first post is looks like rhel4 ( 4.9 is the current 4 ) the 4 series is hitting end of life soon . the current version is RHEL 6.1 for major version upgrades you do a clean new install -- you are 2 major versions out of date now the current 4 series is 4.9 and still supported ( soon to be at End Of Life) the only way is to install a newer os Like the current rhel 6.1 ( that will install gcc 4.4 ) Quote:
you can install a thired party build of a bit newer one ( side by side) but there is NO rhel4 "upgrade" |
Quote:
( Which should never be changed.) Except for bug fix updates. # 'yum install gcc-c++' etc. takes care of that. ( # yum update <package> ). ( The latest is gcc-3.4.6-11.el4_8.1.i386.rpm, gcc-c++-3.4.6-11.el4_8.1.i386.rpm, gcc-g77-3.4.6-11.el4_8.1.i386.rpm ( 14-Jan-2010 )). If you really want a contemporary OS, it's SL6 / EL 6 like said in post # 4. The free version is Scientific Linux SL6 http://www.scientificlinux.org/ .. |
Ok, thanks to all. Useful info from all. Unfortunately I'm stuck in RHv4 land until the application vendor upgrades their app. "Legacy application" is a neat way of saying old crap. But we press on. In one year Linux goes the way of the dinosaur and so do I, replaced by Windows in the cloud.
|
Quote:
replacing red hat with windows going from a solution that NEVER crashes( rhel) to one that ALWAYS crashes ( windows ) Quote:
the reason you are using ( and installed )RHEL4 ,back 5 years ago, was the 7 year support . with NO MAJOR changes and only the SECURITY fixes it is VERY stable . |
All times are GMT -5. The time now is 07:43 AM. |