一. 報錯現象
二.
下載所需軟件包,要安裝新版本:
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
這樣報錯就解決了