You are here: Home / Documentation / How To's / Missing pcre when building nginx on RedHat EL 5.7

Missing pcre when building nginx on RedHat EL 5.7

by nguyen — published Dec 17, 2011 10:07 PM, last modified Aug 16, 2016 10:50 AM

If you get a buildout error like this:

checking for PCRE library ... not found
checking for PCRE library in /usr/local/ ... not found
checking for PCRE library in /usr/include/pcre/ ... not found
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.

While:
  Installing nginx.
 

then you must download the source for PCRE from http://www.pcre.org/ and untar it, then edit your buildout.cfg file to include this source directory in the [nginx] section:

extra-options = --with-pcre=/home/kim/pcre-8.13
 

and rerun bin/buildout.

As per 

https://github.com/ggozad/jarn.xmpp.buildout/issues/4

Navigation