Linux 上 Apache 的问题

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

这是什么配置:错误:C 编译器无法创建可执行文件是怎么回事?如何解决?

答案1

您缺少一些库。尝试: sudo apt-get install libc6-dev g++ gcc

另外,您不想安装 vi apt 的原因是什么?

答案2

您还可以执行 sudo apt-get install build-essential,它将获取构建软件所需的基本内容,其中包括 gcc 和 g++。

相关内容