在Linux上与Apache的问题

我有问题在Ubuntu 8.04上安装Apache。 这是我得到的:

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$ ] 

这是什么configuration:错误:C编译器无法创build可执行文件 ? 如何解决这个问题?

你错过了一些图书馆。 试试: sudo apt-get install libc6-dev g++ gcc

还有一个原因,你不想安装vi apt?

你也可以做sudo apt-get install build-essential,这将获得构build包括gcc和g ++在内的软件的基本function。