LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Initial gcc installation-How to compile gcc itself (https://www.linuxquestions.org/questions/linux-software-2/initial-gcc-installation-how-to-compile-gcc-itself-624062/)

pgb205 02-26-2008 07:00 PM

Initial gcc installation-How to compile gcc itself
 
I installed Debian and am trying to complile some software on it. However I don't have
gcc or any other c compiler installed. Can't compile gcc source code itself for the
same reason. Which raises a question of how to do the initial install of a first compiler
on a system. Do I have to find a precompiled debian package and install it this way?

thanks

jailbait 02-26-2008 07:06 PM

Quote:

Originally Posted by pgb205 (Post 3070872)

I installed Debian and am trying to complile some software on it. However I don't have gcc or any other c compiler installed. Can't compile gcc source code itself for the same reason. Which raises a question of how to do the initial install of a first compiler on a system. Do I have to find a precompiled debian package and install it this way?

Yes, you will find it on your install CD.

-------------------
Steve Stites

pgb205 02-26-2008 07:15 PM

thanks. but lets say i didn't have access to precompiled gcc. How would i bootstrap the gcc compiler?

jschiwal 02-26-2008 08:55 PM

It's obvious that you need a c compiler to compile a c compiler written in c. You either need a different version of c, or obtain the version you want (and the library) in a precompiled package. You could compile or cross-compile the source on another machine. The very first C compiler was probably written in a high level language.

This begs the question, how did the first person catch a cold?

cizzi 02-26-2008 10:24 PM

Whats wrong with "apt-get install build-essential" from the etch installation?


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