错误在Mac OS X上安装scrapy 10.6

问题描述:

尝试使用Mac OSX 10.6安装Scrapy此guide错误在Mac OS X上安装scrapy 10.6

当从终端中运行以下命令:

cd libxml2-2.7.3/python 
sudo make install 

我收到以下错误:

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

继在Guide,其中涉及建筑和安装libxml2和包的libxslt的第一步似乎是事业有成1 ...

最简单的方法是使用的MacPorts来install python and the libraries you need

+0

@Ned谢谢...我会按照该线程..问题看起来类似于我的。 – cit 2010-03-04 12:16:06

感谢@Ned Deily

这些步骤看起来,如果你想在OS X 10.6上运行Scrapy 0.8工作。它使用Python 2.6的Macports安装,而不是与OS捆绑在一起的。步骤假定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 
+0

迄今为止,这对我有效,但是我的〜.profile在哪里/哪里? – ian 2010-05-24 06:29:04

+0

您的.profile文件位于/ Users/的根目录中......它隐藏在Finder中,因此通过Terminal进行导航更容易。您可以使用vi或eMacs对其进行编辑.. .profile基本上登录shell的配置文件... – cit 2010-05-24 13:49:16