Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Rep: Reputation: 15
Question about gcc


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!!!!

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

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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, 03:42 PM   #3
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
With which of your distros do you have that problem? :}

Old 11-25-2005, 03:45 PM   #4
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, 03:47 PM   #5
Registered: Jul 2005
Location: Canada
Distribution: Ubuntu Hardy
Posts: 98

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


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

All times are GMT -5. The time now is 04:26 AM.

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