LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   gcc update (https://www.linuxquestions.org/questions/linux-software-2/gcc-update-27006/)

j-ray 08-01-2002 04:55 PM

gcc update
 
hi!
i successfully updated gcc but i don't know how to set a path to it. do i have to change .bashrc or some other config file? what do i have to type there? (my machine still recognizes the old version, naturally)
if u know, plz help me. thanks a lot! jens

neo77777 08-01-2002 05:08 PM

Where is the new gcc and where is the old one? You can manipulate your path in /etc/profile file to put the directory where the new gcc can be found before the directory with the old version, but what I'd suggest if you don't use the old gcc you can just rename it with mv and make a symlink in this directory to point to new gcc, as in example suppose old gcc is in /usr/bin and the new one in /opt/bin and /opt/bin is not in the path
cd /usr/bin
mv gcc gcc.back
ln -s /opt/bin/gcc gcc

j-ray 08-02-2002 05:04 AM

thanks a lot neo77777! i got it working within 1 minute using the symlink method.
cheers, jens

hhegab 08-02-2002 06:34 PM

where did u get the gcc file?

hhegab

rverlander 08-03-2002 07:21 PM

u need a compile it if u un-installed it

j-ray 08-04-2002 04:38 PM

hhegab: i downloaded it from a german mirror, i don't know which. why do u want to know?
rverlander: sure ihad to compile it but that worked fine. then i renamed old gcc and g++ and made symlinks called gcc and g++ to the new directories. much easier than expected all in all
thanks again!
jens

hhegab 08-04-2002 06:22 PM

I want a copy for myself, and I couldn't d/l it from www.rpmfint.net
thats it! :)

hhegab

Tinkster 08-04-2002 08:47 PM

Quote:

Originally posted by hhegab
I want a copy for myself, and I couldn't d/l it from www.rpmfint.net
thats it! :)

hhegab

Gidday!

Try www.rpmfind.net instead! :}

http://www.rpmfind.net/linux/rpm2htm....php?query=gcc
gives heaps of links, not that I use rpm... :D

Cheers,
Tink

rverlander 08-05-2002 04:26 AM

The ones at rpmfind.net are no good, latest ver at rpmfind that works is 2.7.2

neo77777 08-05-2002 09:00 AM

Everything in rpmfind works if you know exactly what you need (2.96 is buggy and RH preference only); hhegab - if you want to overcome that hurdle with less pain you can install gcc3 from the installation CD set of your redhat and then just do the symlink trick I pointed to j-ray. Post back if you need more assistance.

hhegab 08-05-2002 10:41 AM

I have RedHat 7.2, it has no gcc3 :(

hhegab

neo77777 08-05-2002 10:57 AM

It must be on installation CD's, I have RH7.2 and it definetely was on install CD's - I just didn't bother to install it though.


All times are GMT -5. The time now is 01:50 PM.