LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Compiling gcc (https://www.linuxquestions.org/questions/linux-software-2/compiling-gcc-148989/)

CuteBug 02-21-2004 10:28 PM

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

How do i compile it and install it?

jtshaw 02-21-2004 11:03 PM

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.

CuteBug 02-22-2004 09:19 AM

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?


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