[lxml-dev] lxml is not built against the libxml2 it says it is

Stefan Behnel stefan_ml at behnel.de
Thu Jan 29 07:44:22 CET 2009


Hi,

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

That's a different kind of linking which is done at runtime. You can force
the runtime linker path to become the build time path by passing
--auto-rpath to setup.py.

Stefan


More information about the lxml-dev mailing list