[lxml-dev] Help getting lxml to work reliably on MacOS-X
Stefan Behnel
stefan_ml at behnel.de
Fri Mar 14 17:30:32 CET 2008
Hi,
Fabien wrote:
>> - what package management system (fink/macports) do you use?
> macports
>
>> - are you using the stock Python or one that is installed separately?
> the stock Python bundled with Leopard
>
>> - what library versions are you using of libxml2, libxslt, zlib, libiconv?
> $ port installed |egrep 'libxml2|xslt|zlib|iconv'
> libiconv @1.12_0 (active)
> libxml2 @2.6.31_0 (active)
> libxslt @1.1.22_0 (active)
> zlib @1.2.3_1 (active)
>
> When I'm trying to make the install, I get the following errors :
>
> MacBook-Pro:Downloads jibaku$ sudo easy_install lxml==2.0.2
> Searching for lxml==2.0.2
> Reading http://pypi.python.org/simple/lxml/
> Reading http://codespeak.net/lxml
> Best match: lxml 2.0.2
> Downloading http://codespeak.net/lxml/lxml-2.0.2.tgz
> Processing lxml-2.0.2.tgz
> Running lxml-2.0.2/setup.py -q bdist_egg --dist-dir
> /tmp/easy_install--6uwin/lxml-2.0.2/egg-dist-tmp-25cVmi
> Building lxml version 2.0.2.
> NOTE: Trying to build without Cython, pre-generated 'src/lxml/etree.c'
> needs to be available.
> warning: no previously-included files found matching 'doc/pyrex.txt'
> ld warning: in /opt/local/lib/libxslt.dylib, file is not of required
> architecture
> ld warning: in /opt/local/lib/libexslt.dylib, file is not of required
> architecture
Just guessing, but this looks like a problem with your setup. It seems to use
the correct libraries in /opt/local (although it doesn't look like building
anything here). But somehow they do not seem to fit either your Python or the
compiler, so apparently it can't build against them. Is this on Intel or PPC?
Maybe others can comment on this?
Stefan
More information about the lxml-dev
mailing list