./configure在MacOS上无法识别libxml2或libxslt

时间:2019-08-05 10:19:15

标签: homebrew config nginx-config

./configuremake方面,我几乎是一个新手。 但是,我为此花了一个小时的时间...

我正在尝试在MacOS Mojave上./configure nginx,但是我得到了

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

两个库均使用brew安装。我还尝试使用pip删除并安装它们,但是没有任何内容使./configure能够看到它们。

我该怎么做?

其他信息:

完整命令(在nginx 1.16.0上):

./configure \
  --prefix"=/Applications/MAMP/Library" \
  --with-ld-opt=-L/Applications/MAMP/Library/lib \
  --with-cc-opt=-I/Applications/MAMP/Library/include \
  --conf-path"=/Applications/MAMP/conf/nginx/nginx.conf" \
  --pid-path"=/Applications/MAMP/Library/logs/nginx.pid" \
  --with-http_dav_module \
  --with-http_v2_module \
  --with-http_gunzip_module \
  --with-http_ssl_module \
  --with-pcre-jit \
  --error-log-path"=/Applications/MAMP/logs/nginx_error.log" \
  --http-log-path"=/Applications/MAMP/logs/nginx_access.log" \
  --with-http_mp4_module \
  --with-http_stub_status_module \
  --with-http_sub_module \
  --with-debug \
  --with-mail=dynamic \
  --with-mail_ssl_module \
  --with-stream=dynamic \
  --with-http_xslt_module=dynamic \
  --with-http_image_filter_module=dynamic \
  --with-perl"=/Applications/MAMP/Library/bin/perl" \
  --with-http_perl_module=dynamic \
  --with-stream_ssl_module \
  --with-http_v2_module

酿酒版本:Homebrew 2.1.9-9-g865754f

0 个答案:

没有答案