出现了这个问题 没有PCRE库
./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的
[root@MIO-U253 nginx-1.4.1]# rpm -qa | grep pcre
pcre-7.8-6.el6.i686
[root@MIO-U253 nginx-1.4.1]# rpm -ql | grep pcre
rpm: no arguments given for query
[root@MIO-U253 nginx-1.4.1]# rpm -ql pcre-7.8-6.el6.i686
/lib/libpcre.so.0
/lib/libpcre.so.0.0.1
/usr/bin/pcregrep
/usr/bin/pcretest
/usr/lib/libpcrecpp.so.0
/usr/lib/libpcrecpp.so.0.0.0
/usr/lib/libpcreposix.so.0
/usr/lib/libpcreposix.so.0.0.0
/usr/share/doc/pcre-7.8
/usr/share/doc/pcre-7.8/AUTHORS
/usr/share/doc/pcre-7.8/COPYING
/usr/share/doc/pcre-7.8/ChangeLog
/usr/share/doc/pcre-7.8/LICENCE
/usr/share/doc/pcre-7.8/NEWS
/usr/share/doc/pcre-7.8/README
/usr/share/man/man1/pcre-config.1.gz
/usr/share/man/man1/pcregrep.1.gz
/usr/share/man/man1/pcretest.1.gz
于是百度了一下 发现还要安装devel
[root@MIO-U253 nginx-1.4.1]# yum -y install pcre-devel
ZLIB的问题也是这样解决
上一篇:PHPautoload PSR-0标准 下一篇:快递查询API