Welcome! Log In Create A New Profile

Advanced

Build nginx with PCRE in non-standard location

Posted by haard 
Build nginx with PCRE in non-standard location
November 28, 2011 10:21AM
I'm trying to install nginx into a virtualenv, but cannot manage to specify a custom location for PCRE for configure.
I not want to have to link PCRE statically.

I've so far tried

./configure --with-ld-opt="-Wl,-rpath -Wl,/path/to/env/lib -L /path/to/env/lib" --prefix=/path/to/env
./configure --with-ld-opt="-Wl,-R,/path/to/env/lib -L /path/to/env/lib" --prefix=/path/to/env

and I added /path/to/env/lib to LD_RUN_PATH and LD_LIBRARY_PATH, and set LDFLAGS to -L /path/to/env/lib

But it always chokes with 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.


Using gcc (Debian 4.4.5-8) 4.4.5, Gnu Make 3.81, pcregrep version 8.20 2011-10-21

Thanks for any help!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 183
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready