Re: [xml] libxml2 2.6.7 and Python
- From: Malcolm Tredinnick <malcolm commsecure com au>
- To: Markus Reinsch <m2000 lialin de>
- Cc: xml gnome org
- Subject: Re: [xml] libxml2 2.6.7 and Python
- Date: Wed, 28 Apr 2004 09:42:55 +1000
On Tue, 2004-04-27 at 20:03 +0200, Markus Reinsch wrote:
Hi,
I've got the same problem and I don't know where is my fault.
I've got libxml2-2.6.9 and python 2.3.3 on Redhat.
Markus
I've done these steps:
cd libxmlpath
./configure --prefix=myprefix --with-python=xpython23x/python
make
make install
cd python
xpython23x/python setup.py build
xpython23x/python setup.py install
xpython23x/python
Python 2.3.3 (#3, Jan 18 2004, 16:05:10)
[GCC 2.96 20000731 (Red Hat Linux 7.2 2.96-112.7.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import libxml2
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "libxml2.py", line 1, in ?
import libxml2mod
ImportError:
/home/shared/python/python23/lib/python2.3/site-packages/libxml2mod.so:
undefined symbol: xmlXIncludeProcessFlags
Did you set your library path (the LD_LIBRARY_PATH environment variable)
so that it will find the version of libxml2 you built before it finds
the installed system version. This error looks like you are loading the
wrong version of the library.
To diagnose this further, you may also with to run 'python -v' and then
when you import libxml2 you will be able to see which paths are searched
and where the library that is loaded is found.
Cheers,
Malcolm
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]