Page 1 of 1
Update GCC on Linux redhat
Posted: Sat Jul 02, 2005 7:08 am
by mar-rih
Hi...
i try to chang and update my compiler on Linux redhat 9, which is GCC 3.2.2, i have downloaded the GCC 3.3.4 and try to install it, but i could't do that.
could any one help me please.
Re:Update GCC on Linux redhat
Posted: Sun Jul 03, 2005 2:53 am
by zyp
Go for a newer distribution, Red Hat 9 is years old.
Fedora Core 1 is what should have been Red Hat 10, and the latest now are Fedora Core 4.
Re:Update GCC on Linux redhat
Posted: Sun Jul 03, 2005 4:46 am
by Pype.Clicker
you should be able to have both co-existing on your system if you install what should have been to /usr/bin/gcc into, say, /opt/gnu/bin/gcc ... another part of GCC has to be into /usr/lib/gcc/<version>-<machine>/ ... Just leave it there (it shouldn't overwrite anything else)
Most compiling tools under unix systems use $CC environment variable to know which gcc they should use, so before using the new 3.4.x, just
setenv $CC /opt/gnu/bin/gcc
and when returning to normal operations, just
unsetenv $CC
and voil?