Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 electrictoolbox.com/c-compiler-cannot-create-executables –  someone Feb 23 '10 at 14:24
1  
Any particular you don't simply install the pre built package from the Ubuntu repositories? –  andol Apr 2 '10 at 8:35
add comment

3 Answers

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
add comment

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
add comment

Does it also say:

See `config.log' for more details

You should probably look in config.log for details.

share|improve this answer
add comment

Your Answer

 
discard

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