Error when installing nginx on Centos

WBOY
Release: 2016-08-08 09:29:35
Original
978 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!