Installer LXML sur mac OS X 10.5

Marqué :

assuming your python is the mac os x default… make sure no traces of other pythons in your $PATH

télécharger et installer libxml2:

./configure --prefix=/usr/local/libxml2-2.7.0
make
sudo make install
cd /Library/Python/2.5/site-packages
sudo ln -s /usr/local/libxml2-2.7.0/lib/python2.5/site-packages/* .

télécharger et installer libxslt:

./configure --prefix=/usr/local/libxslt-1.1.24 --with-libxml-prefix=/usr/local/libxml2-2.7.0
make
sudo make install
cd /Library/Python/2.5/site-packages
sudo ln -s /usr/local/libxslt-1.1.24/lib/python2.5/site-packages/* .

télécharger et installer lxml:

sudo python setup.py install \
--with-xml2-config=/usr/local/libxml2-2.7.0/bin/xml2-config \
--with-xslt-config=/usr/local/libxslt-1.1.24/bin/xslt-config

Voir aussi