歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> Centos上安裝nginx報錯

Centos上安裝nginx報錯

日期:2017/3/3 16:56:54   编辑:關於Linux

編譯時候如下錯誤:

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


重新編譯,指定 --with-pcre, 其中 --with-pcre=/vagrant/download/pcre-8.35 是pcre是的源碼目錄,不是安裝目錄

[vagrant@localhost nginx-1.7.0]$ ./configure --prefix=/usr/local/nginx --with-pcre=/vagrant/download/pcre-8.35


這樣就不報錯了。

Copyright © Linux教程網 All Rights Reserved