On 05/02/16 18:56, Sebastian Tarach wrote:
Hello,
I'm trying to compile nginx from source code with xslt support.
Unfortunately it fails on configure step because the script looks for
libraries in standard directories.
---
checking for libxslt ... not found
checking for libxslt in /usr/local/ ... not found
checking for libxslt in /usr/pkg/ ... not found
checking for libxslt in /opt/local/ ... not found
./configure: error: the HTTP XSLT module requires the libxml2/libxslt
libraries. You can either do not enable the module or install the libraries.
---
How can I provide the configure script with correct different library paths?
This depends on the autoconf configuration used by nginx. It's not
suitable for gcc-help.
You should ask on one of its mailing lists instead:
http://nginx.org/en/support.html
Configuration I'm trying to use:
---
./configure --prefix=/opt/nginx-1.9.9/conf
(...)
--with-zlib=/opt/src/nginx/zlib-1.2.8 --with-ld-opt="
-I/opt/src/nginx/libxml-2.9.3 -I/opt/src/nginx/xslt-1.1.28"
I suspect you wanted -L here (search dir), not -I (which would set a
dynamic linker)
Regards