编译APACHE2遇到的问题
(一)error: pcre-config for libpcre not found
不能安装PCRE2,要安装PCRE(https://ftp.pcre.org/pub/pcre/)
(二)Makefile:48: recipe for target ‘htpasswd’ failed
https://www.linuxidc.com/Linux/2017-08/146567.htm
根据上面连接所说,是因为APR和apr-utils没有放到apache2的目录下面。
方法是将下载好的APR和APR-UTILS放到httpd-xxx/srclib下,目录名一定要叫apr和apr-utils。安装pcre,最后configure时编译选项写:
configure
–with-pcre=/usr/local
–with-included-apr