the HTTP rewrite module requires the PCRE library

./configure: error: the HTTP rewrite module requires the PCRE library.

模块依赖性Nginx需要依赖下面3个包

1. gzip 模块需要 zlib 库 ( 下载: http://www.zlib.net/ )

2. rewrite 模块需要 pcre 库 ( 下载: http://www.pcre.org/ )

3. ssl 功能需要 openssl 库 ( 下载: http://www.openssl.org/ )

 

Nginx包下载: http://nginx.org/en/download.html

 

依赖包安装顺序依次为:openssl、zlib、pcre, 然后安装Nginx包.

使用在线安装

yum -y install pcre-devel openssl openssl-devel

网上源码安装

http://blog.csdn.net/dyllove98/article/details/8892509

猜你喜欢

转载自liuna718-163-com.iteye.com/blog/2228416
今日推荐