Welcome! Log In Create A New Profile

Advanced

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

John Moreira
September 15, 2021 11:52PM
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?
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

John Moreira September 15, 2021 11:52PM

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

Francis Daly September 16, 2021 06:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 73
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready