LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2005, 04:24 PM   #1
thorney
Member
 
Registered: Jul 2005
Location: Canada
Distribution: Ubuntu Hardy
Posts: 98

Rep: Reputation: 15
Question about gcc


Hi,

Does anyone know how to install gcc on a machine that doesn't have gcc. I know that sounds dumb but in order to install gcc I need gcc so my question is do I have to reinstall my distro so I can have gcc or can I install gcc without first having gcc.


The reason I want to do this is because the latest version of gcc causes problems with valgrind. Valgrind reports memory leaks that are impossible but when I compile the same code on an earlier compiler (gcc 3.4.4) I don't get these false memory leak reports. I want to remove gcc 4.0.1 and install gcc 3.4.4 but so far this seems to be impossible because if I remove gcc 4 I then I have no gcc to run ./configure for gcc 3.4.4.

Any helpful ideas are extremely welcome!!!!

thanks
 
Old 11-25-2005, 04:40 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
As yoiu state, you need gcc to install gcc. If you want to install from scratch, you'll need a precompiled binary. I think there are some binary tarballs available on the gcc Web site, or you can hunt around for an RPM. Another alternative is to use gcc 4 to compile a source RPM of the older gcc and then install that.
 
Old 11-25-2005, 04:42 PM   #3
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
With which of your distros do you have that problem? :}


Cheers,
Tink
 
Old 11-25-2005, 04:45 PM   #4
thorney
Member
 
Registered: Jul 2005
Location: Canada
Distribution: Ubuntu Hardy
Posts: 98

Original Poster
Rep: Reputation: 15
I just found out that valgrind and memusage aren't yet able to handle the output of the most recent gcc compilers so I'm gonna temporarily set up FC3 (which has gcc 3.4.4) on a machine so I can do my homework and not get spurious results from these tools!!!

Hope this prob. gets fixed soon!!
 
Old 11-25-2005, 04:47 PM   #5
thorney
Member
 
Registered: Jul 2005
Location: Canada
Distribution: Ubuntu Hardy
Posts: 98

Original Poster
Rep: Reputation: 15
Thanks for the ideas everyone!!!
 
  


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
gcc question ?????? jmax24 Programming 7 04-24-2004 08:36 PM
GCC Question SainT1337 Linux - General 2 11-30-2003 02:11 PM
gcc question. philPA Slackware 2 05-22-2003 09:19 AM
gcc question 0micron Linux - Software 4 02-19-2003 04:02 AM
gcc question tyler_durden Programming 1 01-14-2002 03:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:13 AM.

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