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.