在一次编译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问题
[[email protected] tools]# cd /home/huarong/tools/apr-1.5.2
[[email protected] apr-1.5.2]# ./configure --prefix=/usr/local/apr
[[email protected] apr-1.5.2]#make ; make install
2.解决APR-util not found问题
[[email protected] apr-util-1.5.4]# tar -zxvf apr-util-1.5.4.tar.gz
[[email protected] apr-util-1.5.4]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config
[[email protected] apr-util-1.5.4]#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/
[[email protected] pcre]# tar zxvf pcre-8.10.tar.gz
[[email protected] pcre]# cd pcre-8.10
[[email protected] pcre]# ./configure --prefix=/usr/local/pcre
[[email protected] pcre]# make ; make install
4.编译Apache
[[email protected] ~]# ./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/
问题解决。