[lxml-dev] Build problems under MacOS-X

Eric Tiffany etiffany at alum.mit.edu
Sat Feb 2 15:19:14 CET 2008


Sorry for the late reply.  I've been using lxml 1.3.x for a while on MacOS,
using the Python 2.4 installed by MacPorts (along with the libxml2 and
libxslt).  This configuration works well for me, but heed the
DYLD_LIBRARY_PATH suggestion.  You need to make sure this is set to the
correct value for both building and (especially) runtime.

If you build lxml using the DYLD set but don't have it set at runtime, lxml
will report that it is using the correct versions of libraries, when it is
actually not.  I think I reported that on this list a while ago.

I use lxml within a Zope/Plone installation, and also from within Eclipse.

However, I have not used lxml 2.0 in this config, so YMMV.

But, I would suggest getting everything from MacPorts (python, libxml,
etc.).

Also, note that it seems like the recent MacPorts builds only create
python2.4 and python2.5 binaries -- it's up to you to either link "python"
to one of these, or make sure your config settings explicitly call
/usr/local/bin/python2.4

Good luck

ET


On 2/2/08 8:50 AM, "js" <ebgssth at gmail.com> wrote:

> Beats me.
> I've never used the framework Python.
> Not 100% sure but I *think* MacPorts python will work
> even if you installed the framework python,
> so If you don't have to stick to, give it a try.
> 
> On Feb 2, 2008 10:41 PM, Jon Rosebaugh <chairos at gmail.com> wrote:
>> On Feb 2, 2008 7:26 AM, js <ebgssth at gmail.com> wrote:
>>> Hi Stefan and Jon,
>>> 
>>> I've just intalled lxml-2.0 on OS X Tiger by using MacPorts and it
>>> worked without any problem.
>>> lxml-2.0 port is not yet available so I have to patch the portfile.
>>> I already sent the patch to MacPorts team so I hope
>>> that will be available soon.
>>> You  can fetch the patch from below.
>>> http://trac.macosforge.org/projects/macports/ticket/14137
>>> 
>>> Thanks.
>>> 
>> 
>> I use the framework Python from python.org rather than the python
>> available from macports, so it's my understanding that I can't use any
>> macports python packages. Am I wrong?
>> 
> _______________________________________________
> lxml-dev mailing list
> lxml-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/lxml-dev





More information about the lxml-dev mailing list