开发者

Error installing scrapy on Mac Os X 10.6

开发者 https://www.devze.com 2022-12-21 23:59 出处:网络
Trying to install Scrapy on Mac OSX 10.6 using this guide: When running these commands from Terminal: cd libxml2-2.7.3/python

Trying to install Scrapy on Mac OSX 10.6 using this guide:

When running these commands from Terminal:

cd libxml2-2.7.3/python
sudo make install

I get the following error:

Making install in .
make[1]: *** N开发者_如何转开发o rule to make target `../libxslt/libxslt.la', needed by `libxsltmod.la'.  Stop.
make: *** [install-recursive] Error 1

Following the first steps in the Guide, which involved building and installing the libxml2 and libxslt packages seemed to be successful...


The simplest approach is to use MacPorts to install python and the libraries you need.


Credit to @Ned Deily

These steps seem to work if you want to run Scrapy 0.8 on OS X 10.6. It uses Macports install of Python 2.6 rather than the one bundled with the OS. Steps assume Macports is not installed yet.

Get latest MacPorts installer from here and install:

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

Change your ~.profile to:

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

精彩评论

暂无评论...
验证码 换一张
取 消