Can't add custom library path while compiling nginx from source on Windows

John Moreira johnmoreira1019 at gmail.com
Thu Sep 16 03:50:10 UTC 2021


Hello,
I'm trying to compile nginx from source code on Windows with xslt support.
I followed all of the directions from the official page
http://nginx.org/en/docs/howto_build_on_win32.html to a tee and it works
when I do not specify --with-http_xslt_module

When specifying --with-http_xslt_module as part of the config, a
notification appears indicating that I don't have libxlst/.libxml2
libraries

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

auto/configure: error: the HTTP XSLT module requires the libxml2/libxslt
libraries. You can either do not enable the module or install the libraries.

I am using MSYS2 as the official page recommends - the packages for
libxml2/libxslt were already installed. I reinstalled them (using the
standard package manager pacman) and placed them all over my file system in
different places trying to get the configure script to find the libs. When
this didn't work I resorted to specifying locations using --with-ld-opt=
like so

--with-http_xslt_module   --with-ld-opt=-Llibxml2-2.9.10-9
 --with-ld-opt=-Llibxslt-1.1.34-4

I also tried many variations of this, -I instead of -L, different paths,
etc. to no avail

How can I get the configure script to see these packages so I can compile
from source?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20210915/1d4a0b42/attachment.htm>


More information about the nginx mailing list