LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Building GCC (https://www.linuxquestions.org/questions/linux-newbie-8/building-gcc-20525/)

natesch 05-08-2002 07:24 PM

Building GCC
 
OK~So I finally learned to untar and unzip and such so I could install mplayer. But unforunatly I do not have GCC apparently so I went and got it from the web site. I Unzipped and Untarred it and was going going to try to configure it but I get this message:

linux:~/gcc-3.0 # ./configure
Configuring for a i686-pc-linux-gnuoldld host.
Created "Makefile" in /root/gcc-3.0 using "mt-frag"
./configure: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

So I tried to go read the directions for building GCC but don't quite understand them! :( SO now what do I do! Thanx for all the help guys!

DavidPhillips 05-08-2002 10:13 PM

A couple of suggestions

Follow this Howto

http://www.linuxdoc.org/HOWTO/GCC-HOWTO/


or check out the LFS manual, which exlpains step by step how to build a system which leads up to installing GCC

natesch 05-08-2002 10:52 PM

I tired followin instructions but gettin same error! what is the LFS manual? Thanx

natesch 05-08-2002 11:12 PM

I don't get this! What does this:

linux:~/gcc-3.0 # ./configure
Configuring for a i686-pc-linux-gnuoldld host.
Created "Makefile" in /root/gcc-3.0 using "mt-frag"
./configure: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

Mean???? Am I missing something I need or do I need to set something? Please help! Thanx all!

DavidPhillips 05-09-2002 01:38 AM

http://www.linuxfromscratch.org/view/3.3/

it has installing GCC in detail as well as everything else required to get to that point.


All times are GMT -5. The time now is 01:32 PM.