LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-01-2002, 04:55 PM   #1
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,546

Rep: Reputation: 136Reputation: 136
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
 
Old 08-01-2002, 05:08 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
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
 
Old 08-02-2002, 05:04 AM   #3
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,546

Original Poster
Rep: Reputation: 136Reputation: 136
thanks a lot neo77777! i got it working within 1 minute using the symlink method.
cheers, jens
 
Old 08-02-2002, 06:34 PM   #4
hhegab
Member
 
Registered: Apr 2002
Location: IL, USA
Distribution: Fedora 13, Ubuntu 10.04 LTS
Posts: 162

Rep: Reputation: 30
where did u get the gcc file?

hhegab
 
Old 08-03-2002, 07:21 PM   #5
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
u need a compile it if u un-installed it
 
Old 08-04-2002, 04:38 PM   #6
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,546

Original Poster
Rep: Reputation: 136Reputation: 136
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
 
Old 08-04-2002, 06:22 PM   #7
hhegab
Member
 
Registered: Apr 2002
Location: IL, USA
Distribution: Fedora 13, Ubuntu 10.04 LTS
Posts: 162

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

hhegab
 
Old 08-04-2002, 08:47 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 08-05-2002, 04:26 AM   #9
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
The ones at rpmfind.net are no good, latest ver at rpmfind that works is 2.7.2
 
Old 08-05-2002, 09:00 AM   #10
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
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.
 
Old 08-05-2002, 10:41 AM   #11
hhegab
Member
 
Registered: Apr 2002
Location: IL, USA
Distribution: Fedora 13, Ubuntu 10.04 LTS
Posts: 162

Rep: Reputation: 30
I have RedHat 7.2, it has no gcc3

hhegab
 
Old 08-05-2002, 10:57 AM   #12
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
update GCC is so dangerous? Xavius Linux - Software 3 01-04-2005 03:48 PM
update gcc from 3.3.2 to 3.4.3 tcma Red Hat 1 12-08-2004 04:41 PM
how to update gcc of redhat 8.0 esigetel Linux - Newbie 0 11-18-2004 08:21 AM
gcc update help! evilchild Mandriva 3 10-23-2004 08:00 AM
how do I update my gcc? ajgamer Linux - Software 7 10-16-2003 12:55 AM


All times are GMT -5. The time now is 09:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration