在Mac Os X 10.6上安装Scrapy时出现错误

3
尝试使用这个指南在Mac OSX 10.6上安装Scrapy:guide
当从终端运行以下命令时:
cd libxml2-2.7.3/python
sudo make install

I get the following error:

Making install in .
make[1]: *** No rule to make target `../libxslt/libxslt.la', needed by `libxsltmod.la'.  Stop.
make: *** [install-recursive] Error 1

按照指南中的第一步,构建和安装libxml2和libxslt软件包似乎是成功的...

2个回答

2
最简单的方法是使用MacPorts来安装Python和你所需的库(链接1)

@Ned 谢谢... 我会关注那个线程的... 问题看起来和我的相似。 - cit

1

感谢@Ned Deily

如果您想在OS X 10.6上运行Scrapy 0.8,这些步骤似乎是有效的。它使用Macports安装Python 2.6而不是与操作系统捆绑的Python。这些步骤假设尚未安装Macports。

从此处获取最新的MacPorts安装程序并安装:

http://www.macports.org/install.php

sudo port install py26-libxml2 py26-twisted py26-openssl py26-simplejson py26-setuptools python_select

sudo /opt/local/bin/easy_install-2.6 scrapy

将您的~.profile更改为:

export     PATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$PATH

到目前为止,这对我有用,但是我的~.profile在哪里? - ian
你的.profile文件位于 /Users/<your_account_name> 的根目录下...它在Finder中是隐藏的,所以最好通过终端进行导航。你可以使用vi或eMacs编辑它。.profile基本上是你的登录shell的配置文件。 - cit

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接