[lxml-dev] Help getting lxml to work reliably on MacOS-X

Stefan Behnel stefan_ml at behnel.de
Mon Feb 4 19:55:32 CET 2008


Hi,

Michael Guntsche wrote:
> On Feb 4, 2008, at 9:45, Stefan Behnel wrote:
> <snip>
>> When building lxml, please move any installed Cython versions out of
>> the way
>> and run the build on the unpacked lxml-2.0.tar.gz release sources. It
>> must say
>> "trying to build without Cython" at the beginning.
> 
> Slight difference here Cython 0.9.6.11 and lxml from current trunk.

:) ... if even that works, I really don't know what ...


> With tiger the preinstalled libraries are
> 
> lxml2: 2.6.16
> lxslt: 1.1.11
> 
> To get this information just run
> 
> /usr/bin/xml2-config --version
> /usr/bin/xslt-config --version

Ah, sure, thanks. Those libraries are definitely too old and too buggy.


> ot-test runs through without any crashes. Threads 7-9 throw exceptions
> though, as you said.

Then that really looks like a safe setup.


> DYLD_LIBRARY_PATH is not set at all. All I had to do for lxml to find
> the correct libraries was to make sure
> that xml2-config and xslt-config from my macports installation is found
> BEFORE the stock versions in /usr/bin.
> This way etree links against the correct libraries.

Hmmm, could others comment on this? Does this make a difference? Especially
for those, who must currently set the DYLD var?

Stefan



More information about the lxml-dev mailing list