./configure: error: the HTTP rewrite module requires the PCRE library

报错

./configure: error: the HTTP rewrite module requires the PCRE library.

解决方法

安装PRCE
官网:https://ftp.pcre.org/pub/pcre/

sudo wget https://udomain.dl.sourceforge.net/project/pcre/pcre/8.45/pcre-8.45.tar.gz
sudo tar -zxvf pcre-8.45.tar.gz
cd pcre-8.45
sudo ./configure
sudo make && make install

报错

configure: error: Invalid C++ compiler or C++ compiler flags

yum install -y gcc-c++

你可能感兴趣的:(http,网络协议,网络)