configure: error: Cannot use an external APR with the bundled APR-util
apache 2.2.16 编译过程中出现错误信息:configure: error: Cannot use an external APR with the bundled APR-util
根据错误信息安装apr和apr-util:
cd httpd-2.2.16/srclib/apr
./configure --prefix=/usr/local/apr
过程中出现错误,需安装gcc编译器
yum install -y gcc
重新编译后:make && make install
cd ../apr-util
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make && make install
继续安装apache
./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apt-util=/usr/local/apr-util --enable-mods-shared=most --enable-so
make && make install