PDA

View Full Version : gcc cannot create executables


tr333
October 16th, 2005, 12:32 AM
when i attempt to compile a program, i get the following error:
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

i installed gcc via "sudo apt-get install gcc".

invalid
October 16th, 2005, 12:41 AM
You are probably missing related packages.
Do the following:

sudo apt-get install build-essential

Cheers,
Cb

tr333
October 16th, 2005, 12:54 AM
thanks.

any other base packages that would be useful to install?

toojays
October 16th, 2005, 02:30 AM
Depends what you want to do. The documentation for whatever libraries you are using is always good to have. Emacs is essential IMHO as well ;)