Home  >  Article  >  Backend Development  >  Error when installing nginx on Centos

Error when installing nginx on Centos

WBOY
WBOYOriginal
2016-08-08 09:29:35954browse

The following error occurs during compilation:

./configure: error: the HTTP rewrite module requires the PCRE library.You can either disable the module by using --without-http_rewrite_moduleoption, or install the PCRE library into the system , or build the PCRE librarystatically from the source with nginx by using --with-pcre= option.

Recompile, specify --with-pcre, where --with-pcre=/vagrant /download/pcre-8.35 is the source code directory of pcre, not the installation directory

[vagrant@localhost nginx-1.7.0]$ ./configure --prefix=/usr/local/nginx -- with-pcre=/vagrant/download/pcre-8.35This way no error will be reported.

The above introduces the error message when installing nginx on Centos, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn