【发布时间】:2012-06-18 18:39:25
【问题描述】:
早上好,
我正在尝试使用 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
我还是新手...所以任何帮助将不胜感激。
【问题讨论】:
-
你有什么理由不使用pip(或easy_install作为最后的手段)吗?它们过去表现得比其他打包工具好得多 - 并且可以使用 virtualenv!
标签: python macos libxml2 homebrew