[lxml-dev] lxml is not built against the libxml2 it says it is
Paul Everitt
paul at agendaless.com
Thu Jan 29 01:21:45 CET 2009
"""
# Setting the XSLT_CONFIG and XML2_CONFIG environment variables at build
time will let setup.py pick up the xml2-config and xslt-config scripts
from the supplied path name.
# Passing --with-xml2-config=/path/to/xml2-config to setup.py will
override the xml2-config script that is used to determine the C compiler
options. The same applies for the --with-xslt-config option.
"""
...from:
http://pypi.python.org/pypi/lxml/2.0.3
--Paul
Ian Kallen wrote:
> I've got some intermittent lxml problems (long stalls and memory
> bloats) that are difficult to isolate. Ahead of the whole valgrind
> route, I wanted to install the latest, greatest code. So I have these
> in /usr/local/lib
> * libxml2-2.6.32
> * libxslt-1.1.24
> I cannot uninstall the libxml2 that came with the system
> (libxml2-2.6.26) because the system's yum and autofs installations
> depend on it. When try building lxml, I see this reassuring messages
>
> Building against libxml2/libxslt in the following directory: /usr/local/lib
>
> Yet, after the installation it's linked against the system one in /usr
> ldd /usr/local/lib/python2.5/site-packages/lxml-2.1.5-py2.5-linux-i686.egg/lxml/etree.so
> linux-gate.so.1 => (0x00a9e000)
> libxslt.so.1 => /usr/lib/libxslt.so.1 (0x0056f000)
> libexslt.so.0 => /usr/lib/libexslt.so.0 (0x00dbd000)
> libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00ba5000)
> libz.so.1 => /usr/lib/libz.so.1 (0x00dec000)
> libm.so.6 => /lib/libm.so.6 (0x002cf000)
> libpython2.5.so.1.0 => /usr/local/lib/libpython2.5.so.1.0 (0x002f6000)
> libpthread.so.0 => /lib/libpthread.so.0 (0x00fd8000)
> libc.so.6 => /lib/libc.so.6 (0x0042a000)
> libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0x00835000)
> libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00aba000)
> libdl.so.2 => /lib/libdl.so.2 (0x0023a000)
> /lib/ld-linux.so.2 (0x00f35000)
> libutil.so.1 => /lib/libutil.so.1 (0x0023e000)
> libnsl.so.1 => /lib/libnsl.so.1 (0x00242000)
>
> This is with lxml-2.1.5 (also using Cython-0.10.3, if that's relevant).
>
> How do I force lxml to link against the libxml2 in /usr/local ?
> thanks,
> -Ian
> _______________________________________________
> lxml-dev mailing list
> lxml-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/lxml-dev
More information about the lxml-dev
mailing list