Apache2编译configure的时候报错 pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/

从Github PCRE2仓库 下载PCRE代码编译安装后,再进行Apache的编译即可解决问题。

1
2
3
4
5
6
7
8
9
10
# cd /usr/local/src
# wget -O pcre2-10.44.tar.gz https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.44/pcre2-10.44.tar.gz
# tar xvzf pcre2-10.44.tar.gz
# cd pcre2-10.44
# ./configure
# make
# make install

# cd /usr/local/src/httpd-2.4.62
# ./configure --prefix=/usr/local/apache2