Click to See Complete Forum and Search --> : GCC installation


triplenine
10-02-2001, 05:47 PM
when attempting to ./configure the new ver of GCC I get the following error. I am not sure if I don't have a compiler (I would imagine one has to be installed?) or if the env var isn't properly set.

./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.

r0nster
10-02-2001, 07:00 PM
Originally posted by triplenine:
<STRONG>when attempting to ./configure the new ver of GCC I get the following error. I am not sure if I don't have a compiler (I would imagine one has to be installed?) or if the env var isn't properly set.

./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.</STRONG>
More than likely you don't have a compiler installed. At your prompt, do a gcc --version and see if the version number comes up. If an error appears, you probably don't have it installed. You probably need things like "make" and "autoconf" installed as well.

thedexman
10-03-2001, 02:37 AM
As previously posted, probably you either don't have another compiler installed, or you need a link from cc to to your current compiler (ie. ln -s /usr/bin/gcc /usr/bin/cc).

triplenine
10-03-2001, 11:21 AM
I don't seem to have the compiler installed. What is a good one? Any names I can search for?

r0nster
10-03-2001, 11:51 AM
Originally posted by triplenine:
<STRONG>I don't seem to have the compiler installed. What is a good one? Any names I can search for?</STRONG>
install either gcc or egcs, available on your installation CD-ROM. As a safe bet, install all of the "development" packages.