安装nginx出错the HTTP rewrite module requires the PCRE library

2021-08-08 21:57

阅读:603

标签:lan   依赖   require   shel   error   evel   rpm   out   source   问题描述 报错信息如下所示: ./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= option. 原因 缺少pcre和pcre-devel 解决 首先安装pcre和pcre-devel,rpm安装的时候注意依赖关系。 如果在安装以后还出现报错的情况,则使用命令指定pcre的源码路径进行安装。 ./configure --prefix=/usr/local/nginx --with-pcre=/usr/local/pcre --prefix:选择nginx要安装的目录 --with-pcre:选择pcre的源码所在目录 安装nginx出错the HTTP rewrite module requires the PCRE library标签:lan   依赖   require   shel   error   evel   rpm   out   source   原文地址:https://www.cnblogs.com/tudou1179006580/p/14875457.html


评论


亲,登录后才可以留言!