How to add custom library paths while compiling nginx from source code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

Configuration I'm trying to use:
---
 ./configure --prefix=/opt/nginx-1.9.9/conf
--sbin-path=/opt/nginx-1.9.9/sbin/nginx
--conf-path=/opt/nginx-1.9.9/conf/nginx.conf
--pid-path=/opt/nginx-1.9.9/nginx.pid
--lock-path=/opt/nginx-1.9.9/nginx.lock
--error-log-path=/opt/nginx-1.9.9/logs/error.log
--http-log-path=/opt/nginx-1.9.9/logs/access.log
--http-client-body-temp-path=/opt/nginx-1.9.9/lib/body
--http-fastcgi-temp-path=/opt/nginx-1.9.9/lib/fastcgi
--http-proxy-temp-path=/opt/nginx-1.9.9/lib/proxy
--http-scgi-temp-path=/opt/nginx-1.9.9/lib/scgi
--http-uwsgi-temp-path=/opt/nginx-1.9.9/lib/uwsgi --user=www-data
--group=www-data --with-debug --with-http_v2_module
--with-http_gzip_static_module --with-http_addition_module
--with-http_dav_module --with-http_realip_module
--with-http_stub_status_module --with-http_sub_module --with-ipv6
--with-mail --with-mail_ssl_module --with-http_ssl_module
--with-openssl=/opt/src/nginx/openssl-1_0_1g
--with-sha1=/opt/src/nginx/openssl-1_0_1g
--with-md5=/opt/src/nginx/openssl-1_0_1g --with-http_xslt_module
--with-pcre=/opt/src/nginx/pcre-8.32 --with-pcre-jit
--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"
---

~Thanks



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux