+ -
当前位置:首页 → 问答吧 → apache安装出错

apache安装出错

时间:2007-12-28

来源:互联网

我的系统是centos5.1
我把原来自带的apache卸载了
安装新的apache2.26
但是编译的时候老是报错啊

配置参数
复制内容到剪贴板
代码:
./configure --prefix=/usr/local/apache --enable-so  --enable-rewrite=shared
报错
复制内容到剪贴板
代码:
make[1]: Entering directory `/home/service-pack/httpd-2.2.6/support'
make[2]: Entering directory `/home/service-pack/httpd-2.2.6/support'
/home/service-pack/httpd-2.2.6/srclib/apr/libtool --silent --mode=link gcc -g -O2 -pthread        -o htpasswd  htpasswd.lo   -lm /home/service-pack/httpd-2.2.6/srclib/pcre/libpcre.la /home/service-pack/httpd-2.2.6/srclib/apr-util/libaprutil-1.la /home/service-pack/httpd-2.2.6/srclib/apr-util/xml/expat/lib/libexpat.la /home/service-pack/httpd-2.2.6/srclib/apr/libapr-1.la -lrt -lcrypt -lpthread -ldl
/home/service-pack/httpd-2.2.6/srclib/apr/.libs/libapr-1.so: undefined reference to `find_if_index'
collect2: ld returned 1 exit status
make[2]: *** [htpasswd] 错误 1
make[2]: Leaving directory `/home/service-pack/httpd-2.2.6/support'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/service-pack/httpd-2.2.6/support'
make: *** [all-recursive] 错误 1
请问这是什么错误啊?


补充:第一次这样的错误的时候我层尝试继续make install,但是发现安装的东西一点都不全...根本无法启用apache。因为/bin目录下的启动脚本都没有.....

作者: renothing   发布时间: 2007-12-28

那你重新编译一下试一试,按照他的install文件步凑安装嘛,这样就不会出错了.

作者: chaizhiyong   发布时间: 2007-12-29