LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-21-2004, 11:28 PM   #1
CuteBug
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-22-2004, 12:03 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
Well, assuming you have a previous version of gcc, http://gcc.gnu.org/install/ 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, 10:19 AM   #3
CuteBug
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...


../configure
../make
../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?
 
  


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


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration