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

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的庫快。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章