Update GCC on Linux redhat

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
mar-rih

Update GCC on Linux redhat

Post 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.
zyp

Re:Update GCC on Linux redhat

Post 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.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Update GCC on Linux redhat

Post 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? :)
Post Reply