- checking for APR... no
configure: error: APR not found. Please read the documentation.
- checking for pcre-config... pcre-config
configure: error: Did not find working script at pcre-config
环境:centos7.9.2009 httpd-2.4.53 apr-util-1.3.12 apr-1.4.5 pcre-8.10
wget http://archive.apache.org/dist/apr/apr-1.4.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
- 首先检查是否安装了apr apr-util pcre,编译安装前两者时指定安装路径/usr/local,安装pcre 默认安装路径安装。
- 在编译apache时指定前两者的路径:
--with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/