1、
checking for APR... no
configure: error: APR not found. Please read the documentation.
用./configure –help | grep apr 查看帮助。
--with-included-apr Use bundled copies of APR/APR-Util
--with-apr=PATH prefix for installed APR or the full path to apr-config
--with-apr-util=PATH prefix for installed APU or the full path to
安装APR(Apache Portable Runtime )
下载:http://apr.apache.org/download.cgi
[root@localhost LAMP]# wget http://www.fayea.com/apache-mirror//apr/apr-1.4.6.tar.gz
[root@localhost LAMP]# wget http://nchc.dl.sourceforge.net/project/pcre/pcre/8.31/pcre-8.31.zip
#tar -zxvf apr-1.4.2.tar.gz
#cd apr-1.4.2
#./configure
#make && make install
2、
checking for APR-util... no
configure: error: APR-util not found . Please read the documentation.
下载:http://download.chinaunix.net/download/0001000/472.shtml
[root@localhost LAMP]# wget http://www.fayea.com/apache-mirror//apr/apr-util-1.4.1.tar.gz
#tar -zxvf apr-util-1.4.1.tar.gz
#cd apr-util-1.3.9
#./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
#make && make install
3、
./configure仍提示APR-util not found,增加--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util后出现
configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
#./configure –help | grep pcre
--with-pcre=PATH Use external PCRE library
下载:http://sourceforge.net/projects/pcre
#unzip -o pcre-8.10.zip
#cd pcre-8.10
#./configure --prefix=/usr/local/pcre
#make && make install
转载于:https://blog.51cto.com/su007/990610