安装nginx时,执行./configure报错问题: error: the HTTP rewrite module requires the PCRE library.
- 安装
pcre-devel
解决问题
yum -y install pcre-devel
- 这里建议下载包,上传服务器解压,有时yum会失败
- 解压包:
tar -zxvf pcre-8.32.tar.gz
- 进入目录:
cd pcre-8.32
- 执行:
./configure
- 编译:
make
- 安装:
make install