Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

it says configure error: C compiler cannnot create executables what is the problem?

share|improve this question
Could you add some more info on how you tried to install apache ? What are the exact commands you used ? – Dominik Feb 23 '10 at 14:05
./configure /*and nothing more*/ – someone Feb 23 '10 at 14:17
I guess this matters – someone Feb 23 '10 at 14:24
Any particular you don't simply install the pre built package from the Ubuntu repositories? – andol Apr 2 '10 at 8:35

It appears you do not have gcc/cc installed, or you have an alternative compiler without the ability to generate a binary for your platform.

share|improve this answer

The simple fix is:

aptitude install build-essential

To get a basic build environment.

However there's pretty much no reason to build your own apache on a Debian based system (such as Ubuntu). If there's something that the Ubuntu apache doesn't do (or the other modules available in the repositories) you should open a bug and get it fixed.

share|improve this answer
While it's basically the right procedure to file a bug report for missing features, you sometimes just need these features right now and can't wait for another release of the distribution or you have quite exotic requirements which will never be integrated with the mainstream packages of your distribution. – joschi Apr 3 '10 at 7:48

Does it also say:

See `config.log' for more details

You should probably look in config.log for details.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.