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.

I have problem installing apache on ubuntu 8.04. Here's what I got:

one@one-desktop:~/Desktop/httpd-2.2.10$ ls
ABOUT_APACHE      buildconf      configure.in  InstallBin.dsp  NOTICE            srclib
acinclude.m4      CHANGES        docs          LAYOUT          NWGNUmakefile     support
Apache.dsw        confdefs.h     emacs-style   libhttpd.dsp    os                test
apachenw.mcp.zip  config.layout  httpd.dsp     LICENSE         README            VERSIONING
build             config.log     httpd.spec    Makefile.in     README.platforms
BuildAll.dsp      config.nice    include       Makefile.win    ROADMAP
BuildBin.dsp      configure      INSTALL       modules         server
one@one-desktop:~/Desktop/httpd-2.2.10$ ./configure
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1

Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
Configuring APR library
Platform: i686-pc-linux-gnulibc1
checking for working mkdir -p... yes
APR Version: 1.3.3
checking for chosen layout... apr
checking for gcc... gcc
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.
configure failed for srclib/apr
one@one-desktop:~/Desktop/httpd-2.2.10$ ]

What is this configure: error: C compiler cannot create executables all about? And how to settle the problem?

share|improve this question
    
Voting to close as 'belongs on Serverfault.' But may I also take this opportunity to welcome you to Stackoverflow! =) –  David Thomas Feb 23 '10 at 18:11
add comment

migrated from stackoverflow.com Feb 23 '10 at 18:13

This question came from our site for professional and enthusiast programmers.

2 Answers

You're missing some libraries. try: sudo apt-get install libc6-dev g++ gcc

Also is there a reason you don't want to install vi apt?

share|improve this answer
add comment

You can also do sudo apt-get install build-essential which will get essential things to build software, which include gcc and g++.

share|improve this answer
add comment

Your Answer

 
discard

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