早上好,
我正在尝试使用 python 模块安装 libxml2。我尝试了以下方法:
brew install --with-python libxml2
==> Downloading ftp://xmlsoft.org/libxml2/libxml2-2.8.0.tar.gz
Already downloaded: /Users/brandon/Library/Caches/Homebrew/libxml2-2.8.0.tar.gz
==> ./configure --prefix=/usr/local/Cellar/libxml2/2.8.0 --without-python
正如你所看到的......即使使用 --with-python 标志,它仍然在没有 python 的情况下配置源!
在安装结束时,自制软件说:
Generally there are no consequences of this for you.
If you build your own software and it requires this formula, you'll need
to add its lib & include paths to your build variables:
LDFLAGS -L/usr/local/Cellar/libxml2/2.8.0/lib
CPPFLAGS -I/usr/local/Cellar/libxml2/2.8.0/include
当我尝试安装 gnome-doc-utils 包时:
Gnome-doc-utils requires libxml2 to be compiled
with the python modules enabled, to do so:
$ brew install libxml2 --with-python
所以很明显我又试了...
╰─ brew install libxml2 --with-python
Error: libxml2-2.8.0 already installed
我对此还是新手......所以任何帮助将不胜感激。