added libxml2 installation steps for MacOSX (thanks Patrick Mézard)

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40776
This commit is contained in:
Pablo Hoffman 2009-01-26 23:28:19 +00:00
parent 279b9ac40d
commit ce1700dd8e
1 changed files with 32 additions and 0 deletions

View File

@ -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
-------