一. 报错现象
二.
下载所需软件包,要安装新版本:
wget http://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-1.6.5.tar.gz
wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz
wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip
tar -zxf apr-1.6.5.tar.gz cd apr-1.6.5 ./configure --prefix=/usr/local/apr make && make install
2、解决APR-util not found问题
tar -zxf apr-util-1.3.12.tar.gz cd apr-util-1.3.12 ./configure --prefix=/usr/local/apr-util -with-apr=/usr/local/apr/bin/apr-1-config make && make install
unzip -o pcre-8.10.zip cd pcre-8.10 ./configure --disable-shared --with-pic --prefix=/usr/local/pcre make && make install
三.变更
./configure --prefix=/usr/local/apache2/
改用:
./configure --prefix=$H_PREFIX --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
这样报错就解决了