+ -
当前位置:首页 → 问答吧 → 在Linux下安装Apache问题~在线急等~!

在Linux下安装Apache问题~在线急等~!

时间:2010-10-23

来源:互联网

root@zj-desktop:/var/local/httpd-2.2.13# ./configure --prefix=/usr/local/apache2\
> --enable-shared=max \
> --enable-module=rewrite \
> --enable-module=so
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.8
checking for chosen layout... apr
checking for gcc... gcc
checking for C compiler default output file name... 
configure: error: in `/var/local/httpd-2.2.13/srclib/apr':
configure: error: C compiler cannot create executables
See `config.log' for more details.
configure failed for srclib/apr


错误如上!请高人指点~!

作者: hlxcoo2006   发布时间: 2010-10-23

如果你是Ubuntu系统执行如下命令 再编译apache
sudo apt-get install libc6-dev

作者: steptodream   发布时间: 2010-10-24