linux下apache安装错误解决办法

出现信息:

configure: error: Cannot use an external APR-util with the bundled APR

解决办法:

1. 编译时,使用参数--with-included-apr(测试通过)

2. (未经测试)

cd httpd-2.x

安装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

这样安装正常!

你可能感兴趣的:(apache,linux,cgi)