问题
#./configure --prefix……检查编辑环境时出现:checking for APR... noconfigure: error: APR not found . Please read the documentation
方法
1.下载所需软件包:
wget/dist/apr/apr-1.4.5.tar.gz wget/dist/apr/apr-util-1.3.12.tar.gz wgethttp://jaist./project/pcre/pcre/8.10/pcre-8.10.zip
a:解决apr not found问题>>>>>>
[root@xttest]#tar-zxfapr-1.4.5.tar.gz [root@xttest]#cdapr-1.4.5 [root@xtapr-1.4.5]#./configure--prefix=/usr/local/apr [root@xtapr-1.4.5]#make&&makeinstall
b:解决APR-util not found问题>>>>
[root@xttest]#tar-zxfapr-util-1.3.12.tar.gz [root@xttest]#cdapr-util-1.3.12 [root@xtapr-util-1.3.12]#./configure--prefix=/usr/local/apr-util-with-apr=/usr/local/apr/bin/apr-1-config [root@xtapr-util-1.3.12]#make&&makeinstall
c:解决pcre问题>>>>>>>>>
[root@xttest]#unzip-opcre-8.10.zip [root@xttest]#cdpcre-8.10 [root@xtpcre-8.10]#./configure--prefix=/usr/local/pcre [root@xtpcre-8.10]#make&&makeinstall
2.apache然后可以顺利编译了
[root@localhost httpd-2.4.43]# ./configure --prefix=/usr/local/apache \> --with-apr=/usr/local/apr \> --with-apr-util=/usr/local/apr-util/ \> --with-pcre=/usr/local/pcre
/wajika/p/6428659.html?utm_source=itdadao&utm_medium=referral