configure: error: Cannot use an external APR with the bundled APR-utilq错误解决

来源:互联网 发布:乙丁网络 编辑:程序博客网 时间:2024/06/13 23:15

收藏

 

一般在第一次安装进一般不会遇到这种问题,在重新编译时会遇到该问题
以下是我根据错误提示进行纠正安装的


cd httpd-2.2.2

安装APR
cd srclib/apr

#./configure --prefix=/usr/local/apr
#make
#make install

安装APR-util
cd srclib/apr-util

#./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
#make
#make install

# ./configure --prefix=/usr/local/apache
--enable-so --enable-mods-shared=all
--enable-cgi
--with-apr=/usr/local/apr
--with-apr-util=/usr/local/apr-util/bin

# make
#make install

这样安装正常!