dfsfsf 发表于 2015-6-15 09:17:07

centos 5.5 部署apache configure: error: APR not found. Please read the docume

在一次编译apache (httpd2.4.12)时报错,APR not found
在apr.apache.org网站上可以下载此软件(apr-1.5.2.tar.gz);apr-util-1.5.4.tar.gz ;
1.解决apr not found问题
# cd /home/huarong/tools/apr-1.5.2
# ./configure --prefix=/usr/local/apr
#make ; make install
2.解决APR-util not found问题
# tar -zxvf apr-util-1.5.4.tar.gz
# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config
#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/
下载地址:http://ftp.exim.llorien.org/pcre/
# tar zxvf pcre-8.10.tar.gz
# cd pcre-8.10
# ./configure --prefix=/usr/local/pcre
# make ; make install
4.编译Apache
# ./configure --prefix=/application/apache2.4.12 --enable-default --enable-expires --enable-headers --enable-modules=most --enable-so --with-mpm=worker --enable-rewrite --with-apr=/home/huarong/tools/apr-1.5.2 --with-apr-util=/home/huarong/tools/apr-util-1.5.4 --with-pcre=/usr/local/pcre/
问题解决。

页: [1]
查看完整版本: centos 5.5 部署apache configure: error: APR not found. Please read the docume