Nginx $ ./configure: error: the HTTP rewrite module requires the PCRE library. While trying to install Nginx server using the source distribution, "./configure" command failed on CentOS 6.7 with below error message. It complains that PCRE library is not available on the system.
Then search for "pcre-devel", select "Development files for pcre" and install by clicking "Apply" as shown below.
After that, you can rerun the "./configure" command to continue installing Nginx 1.12.1 server.
Hope this helps.
./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.
Solution
You can install this library either via command line or GUI.Resolve via Command line
yum install pcre-devel
Resolve via GUI
Go to "System" -> "Administration" -> "Add/Remove Software" as shown below.After that, you can rerun the "./configure" command to continue installing Nginx 1.12.1 server.
Hope this helps.
No comments:
Post a Comment