You may get a below error while installing NGINX with http_stub_status_module module
# ./configure --prefix=/usr/local/nginx --with-http_stub_status_module
Error :
checking for PCRE library in /usr/pkg/ ... not found
checking for PCRE library in /opt/local/ ... not found
./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.
Soluton :
The HTTP rewrite module requires the pcre-devel package so install in your system using yum command
# yum install pcre-devel
Dependencies Resolved ========================================================================================== Package Arch Version Repository Size ========================================================================================== Installing: pcre-devel x86_64 7.8-6.el6 base 318 k Updating for dependencies: pcre x86_64 7.8-6.el6 base 195 k Transaction Summary ========================================================================================== Install 1 Package(s) Upgrade 1 Package(s) Total download size: 513 k Is this ok [y/N]: y Downloading Packages: (1/2): pcre-7.8-6.el6.x86_64.rpm | 195 kB 00:00 (2/2): pcre-devel-7.8-6.el6.x86_64.rpm | 318 kB 00:00 ---------------------------------------------------------------------------------------- Total 499 kB/s | 513 kB 00:01 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Updating : pcre-7.8-6.el6.x86_64 1/3 Installing : pcre-devel-7.8-6.el6.x86_64 2/3 Cleanup : pcre-7.8-3.1.el6.x86_64 3/3 Installed: pcre-devel.x86_64 0:7.8-6.el6 Dependency Updated: pcre.x86_64 0:7.8-6.el6
Ubuntu:
If you are using Ubuntu operating system You need to install pcre3 packages
# apt-get install libpcre3 libpcre3-dev
The library packagesis required for regular expressions for ngx_http_rewrite_module module.
Comments (0)