Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 02-21-2004, 10:28 PM   #1
LQ Newbie
Registered: Apr 2003
Posts: 20

Rep: Reputation: 0
Compiling gcc

I have donloaded the source code of the latest gcc compiler...

How do i compile it and install it?
Old 02-21-2004, 11:03 PM   #2
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Well, assuming you have a previous version of gcc, will tell you how to configure, build, and install a new version.

If you don't have a previous version of gcc you will need to download a binary package from your distributions site. Gcc is a chicken and egg type situation. Gcc needs gcc to be compiled.
Old 02-22-2004, 09:19 AM   #3
LQ Newbie
Registered: Apr 2003
Posts: 20

Original Poster
Rep: Reputation: 0
Ok I downloaded the necessary files... made a new directory called objdir and from that directory in the terminal I issued the command...

../make install

after this when I issue the command

rpm -qa | grep gcc

the output shows the previous installation of gcc...
How do I replace the previous version with the new version?


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
compiling problems with gcc 3.4 1337 Twinkie Linux - Software 1 05-13-2005 03:51 PM
Compiling using gcc Damitha Mandriva 1 12-17-2004 05:11 AM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 11:38 AM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 05:03 AM
Compiling C++ GCC poeta_boy Linux - Newbie 14 10-14-2003 04:23 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:02 PM.

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