checking for PCRE library ... not found
checking for PCRE library in /usr/local/ ... not found
checking for PCRE library in /usr/include/pcre/ ... not found
checking for PCRE library in /usr/pkg/ ... not found
checking for PCRE library in /opt/local/ ... not found
./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.
nginx 在编译时无法找到 PCRE 库
1. 检查 PCRE 库安装状态
# 检查是否已安装 PCRE 相关包
rpm -qa | grep pcre

2. 安装 PCRE 开发库
# 安装 PCRE 开发包
yum install -y pcre-devel
# 如果是较新系统,可能需要安装 PCRE2
yum install -y pcre2-devel
最终方案:


欢迎来撩 : 汇总all
