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!