您的位置:首页 > 理论基础 > 计算机网络

Nginx安装报错:./configure: error: the HTTP rewrite module requires the PCRE library.

2013-01-28 11:08 831 查看
Nginx安装报错:

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.

原因是PCRE包没有安装。

下载prce包:

wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.32.tar.gz
安装nginx所需要的pcre-devel库,是为了是Nginx支持http Rewrite模块。

[root@xsunt94-pc ~]# tar zxf pcre-8.32.tar.gz

[root@xsunt94-pc ~]# cd pcre-8.32

[root@xsunt94-pc pcre-8.32]# ./configure

[root@xsunt94-pc pcre-8.32]# make && make install
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐