From ce1700dd8e5872ab18cbbb5301a287f9de2d6b4f Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Mon, 26 Jan 2009 23:28:19 +0000 Subject: [PATCH] =?UTF-8?q?added=20libxml2=20installation=20steps=20for=20?= =?UTF-8?q?MacOSX=20(thanks=20Patrick=20M=C3=A9zard)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40776 --- scrapy/trunk/docs/intro/install.rst | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/scrapy/trunk/docs/intro/install.rst b/scrapy/trunk/docs/intro/install.rst index 7234d1d4d..f154f63e9 100644 --- a/scrapy/trunk/docs/intro/install.rst +++ b/scrapy/trunk/docs/intro/install.rst @@ -43,6 +43,38 @@ If you are running Arch Linux use the following command to install required depe pacman -S twisted libxml2 pyopenssl +MacOSX +------ + +MacOSX ships an libxml2 version too old to be used by Scrapy. Also, by +looking on the web it seems that installing libxml2 on MacOSX is a bit +of a challenge. Here is a way to achieve this, though not acceptable +on the long run: + +1. Fetch the following libxml2 and libxslt packages: + + ftp://xmlsoft.org/libxml2/libxml2-2.7.3.tar.gz + + ftp://xmlsoft.org/libxml2/libxslt-1.1.24.tar.gz + +2. Extract them, and make every one of them like:: + + ./configure --with-python=/Library/Frameworks/Python.framework/Versions/2.5/ + make + sudo make install + +referencing your current python framework. + +3. In libxml2-2.7.3/python, run:: + + sudo make install + + The libraries and modules should be installed in something like + /usr/local/lib/python2.5/site-packages. Add it to your PYTHONPATH + and you are done. Check the library is there with a simple:: + + python -c 'import libxml2' + Windows -------