xyz, 18.05.2010 14:35:
I use CentOS 5.2 without root access and therefore I installed Python in my home folder.
Unfortunately, I was not able to get lxml running in the following way: ------ ftp://xmlsoft.org/libxml/
cd ~/temp/libxml2-2.7.7 $ configure --prefix=/home/mit/bin/libxml2 $ make $ make install
$ cd /home/mit/programs/python/lib/python2.6/site-packages $ ln -s /home/mit/bin/libxml2/lib/python2.6/site-packages/* .
---------- ftp://xmlsoft.org/libxslt/
$ ./configure --prefix=/home/mit/bin/libxslt --with-libxml-prefix=/home/mit/bin/libxml2
$ make $ make install
$ cd /home/mit/programs/python/lib/python2.6/site-packages $ ln -s /home/mit/bin/libxslt/lib/python2.6/site-packages/* .
--------- $ cd ~/temp/lxml-2.2.6/
$ python setup.py install --with-xml2-config=/home/mit/bin/libxml2/bin/xml2-config --with-xslt-config=/home/mit/bin/libxslt/bin/xslt-config --------
I got errors by testing the lxml in the following:
$python Python 2.6.4 (r264:75706, Jan 28 2010, 14:19:59) [GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
from lxml import etree Traceback (most recent call last): File "<stdin>", line 1, in<module> ImportError: /home/mit/programs/python/lib/python2.6/site-packages/lxml-2.2.6-py2.6-linux-x86_64.egg/lxml/etree.so: symbol xmlSchematronSetValidStructuredErrors, version LIBXML2_2.6.32 not defined in file libxml2.so.2 with link time reference
Try passing the --auto-rpath option. Or, even better, use --static-deps=true. Stefan