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

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

I'm trying to compile nginx from source code on Windows with xslt support.
I followed all of the directions from the official page 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

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

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: <>

More information about the nginx mailing list