LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing gcc, howto? (https://www.linuxquestions.org/questions/linux-newbie-8/installing-gcc-howto-333057/)

D_funkt 06-13-2005 09:01 AM

installing gcc, howto?
 
Hello, I am attempting to configure gcc. this is the info I receive. I guess I'm wondering how to set the environment variable CC to a working compiler, but the reason I'm trying to get gcc up and running is because I don't have a working compiler (I don't think anyway...) I'm using ubuntu.



root@bonez:/home/dylan/Desktop/xine-lib-1.0.1/gcc-3.4.4 # ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
./configure: line 2339: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
root@bonez:/home/dylan/Desktop/xine-lib-1.0.1/gcc-3.4.4 #

Mega Man X 06-13-2005 09:32 AM

Quote:

Originally posted by D_funkt
Hello, I am attempting to configure gcc. this is the info I receive. I guess I'm wondering how to set the environment variable CC to a working compiler, but the reason I'm trying to get gcc up and running is because I don't have a working compiler (I don't think anyway...) I'm using ubuntu.



root@bonez:/home/dylan/Desktop/xine-lib-1.0.1/gcc-3.4.4 # ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
./configure: line 2339: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
root@bonez:/home/dylan/Desktop/xine-lib-1.0.1/gcc-3.4.4 #

Hi!

Welcome to LQ.org. That's not possible. You are trying to compile a compiler without a compiler installed. Heard of the "Chicken or Egg first" tale?. Same thing. These are called chain dependencies. It's possible to work around that, but we will do the easy way.

Open Synaptic, go to search and type gcc. You should figure which package to install from there. Read this and bookmark this link too, you will need it ;)

http://www.ubuntuguide.org/

Good luck!

Boow 06-13-2005 12:09 PM

apt-get install build-essential with ubuntu cd mounted

D_funkt 06-13-2005 05:09 PM

Thanks
 
Thanks for the info, I'm sure I'll have many more questions to come. I can only read so many techie papers before I go square-eyed, but I think it's getting easier.


All times are GMT -5. The time now is 01:03 AM.