nginx configure error: the HTTP rewrite module requires the PCRE library

来源:互联网 发布:php记事本编写软件 编辑:程序博客网 时间:2024/04/30 10:49

nginx-1.3.5 configure:

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


解决办法:
sudo yum install pcre-devel

pcre简介:perl compatible regular expresions C语言库。对应c++版本为pcre++,正则匹配方面比boost的库快。