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

时间:2021-06-11 19:17:07   收藏:0   阅读:0

问题描述

报错信息如下所示:

./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.

原因

缺少pcrepcre-devel

解决

首先安装pcrepcre-devel,rpm安装的时候注意依赖关系。

如果在安装以后还出现报错的情况,则使用命令指定pcre的源码路径进行安装。

 ./configure --prefix=/usr/local/nginx --with-pcre=/usr/local/pcre
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!