我正在尝试在我的Mac(OS 10.6.4)上安装libxml2。实际上,我只是想运行Python中的Scrapy脚本,这要求我安装Twisted、Zope和现在的libxml2。我已经下载了最新版本(2.7.7,来自xmlsoft.org),并尝试按照这些指令在这里。总结一下,我尝试了这个命令(在Python子目录中):
python setup.py --static-deps --libxml2-version=2.7.7 -- libxslt-version=1.1.24
我遇到了这个错误:
failed to find headers for libxml2: update includes_dir
有什么想法吗?
我还尝试运行了这个命令:
./configure --with-python=/System/Library/Frameworks/Python.framework/Versions/2.6/
我遇到了以下错误:
configure: error: no acceptable C compiler found in $PATH
那能为情况带来一些启示吗?