<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: how to install lxml python module on mac os 10.5 (leopard)</title>
	<atom:link href="http://lsimons.wordpress.com/2008/08/31/how-to-install-lxml-python-module-on-mac-os-105-leopard/feed/" rel="self" type="application/rss+xml" />
	<link>http://lsimons.wordpress.com/2008/08/31/how-to-install-lxml-python-module-on-mac-os-105-leopard/</link>
	<description>Blog where Leo talks tech</description>
	<lastBuildDate>Sat, 14 Nov 2009 23:35:52 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Leo Simons</title>
		<link>http://lsimons.wordpress.com/2008/08/31/how-to-install-lxml-python-module-on-mac-os-105-leopard/#comment-459</link>
		<dc:creator>Leo Simons</dc:creator>
		<pubDate>Thu, 01 Oct 2009 20:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://lsimons.wordpress.com/?p=252#comment-459</guid>
		<description>Hey Michael, that looks like a rather weird error. I think you have to do what it says, and re-run autoconf. That is what the &quot;autoreconf&quot; command is for in the updated instructions. Did you try that?

If so, try deleting the &#039;./libtool&#039; file and the &#039;./aclocal.m4&#039; file, and then re-run autoreconf. If that doesn&#039;t fix it, please provide full details of your environments and the commands you&#039;re running.</description>
		<content:encoded><![CDATA[<p>Hey Michael, that looks like a rather weird error. I think you have to do what it says, and re-run autoconf. That is what the &#8220;autoreconf&#8221; command is for in the updated instructions. Did you try that?</p>
<p>If so, try deleting the &#8216;./libtool&#8217; file and the &#8216;./aclocal.m4&#8242; file, and then re-run autoreconf. If that doesn&#8217;t fix it, please provide full details of your environments and the commands you&#8217;re running.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://lsimons.wordpress.com/2008/08/31/how-to-install-lxml-python-module-on-mac-os-105-leopard/#comment-452</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Wed, 23 Sep 2009 23:31:20 +0000</pubDate>
		<guid isPermaLink="false">http://lsimons.wordpress.com/?p=252#comment-452</guid>
		<description>I&#039;m seeing the following, any suggestions? 

make  all-recursive
Making all in include
Making all in libxml
make[3]: Nothing to be done for `all&#039;.
make[3]: Nothing to be done for `all-am&#039;.
Making all in .
/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./include  -D_REENTRANT      -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT SAX.lo -MD -MP -MF .deps/SAX.Tpo -c -o SAX.lo SAX.c
./libtool: line 460: CDPATH: command not found
/usr/local/src/libxml2-2.7.4/libtool: line 460: CDPATH: command not found
/usr/local/src/libxml2-2.7.4/libtool: line 1138: func_opt_split: command not found
libtool: Version mismatch error.  This is libtool 2.2.6, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6
libtool: and run autoconf again.
make[2]: *** [SAX.lo] Error 63
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2</description>
		<content:encoded><![CDATA[<p>I&#8217;m seeing the following, any suggestions? </p>
<p>make  all-recursive<br />
Making all in include<br />
Making all in libxml<br />
make[3]: Nothing to be done for `all&#8217;.<br />
make[3]: Nothing to be done for `all-am&#8217;.<br />
Making all in .<br />
/bin/sh ./libtool &#8211;tag=CC   &#8211;mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./include  -D_REENTRANT      -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT SAX.lo -MD -MP -MF .deps/SAX.Tpo -c -o SAX.lo SAX.c<br />
./libtool: line 460: CDPATH: command not found<br />
/usr/local/src/libxml2-2.7.4/libtool: line 460: CDPATH: command not found<br />
/usr/local/src/libxml2-2.7.4/libtool: line 1138: func_opt_split: command not found<br />
libtool: Version mismatch error.  This is libtool 2.2.6, but the<br />
libtool: definition of this LT_INIT comes from an older release.<br />
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6<br />
libtool: and run autoconf again.<br />
make[2]: *** [SAX.lo] Error 63<br />
make[1]: *** [all-recursive] Error 1<br />
make: *** [all] Error 2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike A</title>
		<link>http://lsimons.wordpress.com/2008/08/31/how-to-install-lxml-python-module-on-mac-os-105-leopard/#comment-449</link>
		<dc:creator>Mike A</dc:creator>
		<pubDate>Wed, 26 Aug 2009 12:49:03 +0000</pubDate>
		<guid isPermaLink="false">http://lsimons.wordpress.com/?p=252#comment-449</guid>
		<description>Thanks, I&#039;d been sweating over this all afternoon. 
Never known anything as hard to install as it is to install lxml on OS X! 

I can report the second method (&quot;Update March 1, 2009...&quot;) works on OS X 10.5.8 with python 2.6.2, lxml 2.2.2, libxml2-2.7.3, and libxsl2-1.1.24.

I had a lot of problems at first with the lxml installation complaining about architecture types but fresh downloads of everything seemed to fix it. 

Hope the lxml team take this into account in their installation instructions.

Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks, I&#8217;d been sweating over this all afternoon.<br />
Never known anything as hard to install as it is to install lxml on OS X! </p>
<p>I can report the second method (&#8220;Update March 1, 2009&#8230;&#8221;) works on OS X 10.5.8 with python 2.6.2, lxml 2.2.2, libxml2-2.7.3, and libxsl2-1.1.24.</p>
<p>I had a lot of problems at first with the lxml installation complaining about architecture types but fresh downloads of everything seemed to fix it. </p>
<p>Hope the lxml team take this into account in their installation instructions.</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Arnold</title>
		<link>http://lsimons.wordpress.com/2008/08/31/how-to-install-lxml-python-module-on-mac-os-105-leopard/#comment-448</link>
		<dc:creator>Bob Arnold</dc:creator>
		<pubDate>Tue, 25 Aug 2009 22:30:02 +0000</pubDate>
		<guid isPermaLink="false">http://lsimons.wordpress.com/?p=252#comment-448</guid>
		<description>Many thanks!  Especially to Leo Simons but also Jimmy Royer.  I am just starting on Python, and this discussion made an impossible job possible.  My iMac is panther 10.3.9 (PPC of course).  That made it even harder.  To use lxml, the /usr/bin/python was too downrev.  Fink&#039;s python is also too old, and Macport can&#039;t build python because it can&#039;t build tk.  Luckily I was able to get python 2.6.2 and easy_install from python.org.

Unfortunately, the &quot;make&quot; bombs for both libxml2 and libxlst.  In both cases, configure fails to set $echo in the output libtools script, for some reason.  The fix was to &quot;vi libtools&quot; and add a line just after the comment which says &quot;# Check that we have a working $echo&quot;
echo=&quot;echo&quot;        # configure fails to define $echo when generating libtool, so set $echo here

Just to clarify:
* My autoreconf comes from Macports - dunno if that makes a difference but it worked
* The autoreconf generates some warnings that I ignored (safely, I think)
* Do: export ARCHFLAGS=&#039;-arch ppc&#039;
* Just after the curl command, edit/fix the paths by doing: &quot;vi setup.py&quot;

Thank you, again!</description>
		<content:encoded><![CDATA[<p>Many thanks!  Especially to Leo Simons but also Jimmy Royer.  I am just starting on Python, and this discussion made an impossible job possible.  My iMac is panther 10.3.9 (PPC of course).  That made it even harder.  To use lxml, the /usr/bin/python was too downrev.  Fink&#8217;s python is also too old, and Macport can&#8217;t build python because it can&#8217;t build tk.  Luckily I was able to get python 2.6.2 and easy_install from python.org.</p>
<p>Unfortunately, the &#8220;make&#8221; bombs for both libxml2 and libxlst.  In both cases, configure fails to set $echo in the output libtools script, for some reason.  The fix was to &#8220;vi libtools&#8221; and add a line just after the comment which says &#8220;# Check that we have a working $echo&#8221;<br />
echo=&#8221;echo&#8221;        # configure fails to define $echo when generating libtool, so set $echo here</p>
<p>Just to clarify:<br />
* My autoreconf comes from Macports &#8211; dunno if that makes a difference but it worked<br />
* The autoreconf generates some warnings that I ignored (safely, I think)<br />
* Do: export ARCHFLAGS=&#8217;-arch ppc&#8217;<br />
* Just after the curl command, edit/fix the paths by doing: &#8220;vi setup.py&#8221;</p>
<p>Thank you, again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hgeldenhuys</title>
		<link>http://lsimons.wordpress.com/2008/08/31/how-to-install-lxml-python-module-on-mac-os-105-leopard/#comment-433</link>
		<dc:creator>hgeldenhuys</dc:creator>
		<pubDate>Sat, 25 Jul 2009 15:02:06 +0000</pubDate>
		<guid isPermaLink="false">http://lsimons.wordpress.com/?p=252#comment-433</guid>
		<description>Thanks a million!!!</description>
		<content:encoded><![CDATA[<p>Thanks a million!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Nelson</title>
		<link>http://lsimons.wordpress.com/2008/08/31/how-to-install-lxml-python-module-on-mac-os-105-leopard/#comment-420</link>
		<dc:creator>Adam Nelson</dc:creator>
		<pubDate>Wed, 15 Jul 2009 14:07:34 +0000</pubDate>
		<guid isPermaLink="false">http://lsimons.wordpress.com/?p=252#comment-420</guid>
		<description>I tried using pip to install (pip install lxml) and got a huge gcc error chain:

...
src/lxml/lxml.etree.c: At top level:

src/lxml/lxml.etree.c:130036: error: invalid application of ‘sizeof’ to incomplete type ‘struct __pyx_obj_4lxml_5etree__ParserSchemaValidationContext’

lipo: can&#039;t figure out the architecture type of: /var/folders/2H/2HiejGSYHRWzNXbn0c7wzk+++TI/-Tmp-//cc1J4hwT.out

error: command &#039;gcc&#039; failed with exit status 1

Using easy_install alone worked fine with no need to handpack anything:

easy_install lxml

I really advise against using macports for python libraries.  Use pip where possible, otherwise easy_install.</description>
		<content:encoded><![CDATA[<p>I tried using pip to install (pip install lxml) and got a huge gcc error chain:</p>
<p>&#8230;<br />
src/lxml/lxml.etree.c: At top level:</p>
<p>src/lxml/lxml.etree.c:130036: error: invalid application of ‘sizeof’ to incomplete type ‘struct __pyx_obj_4lxml_5etree__ParserSchemaValidationContext’</p>
<p>lipo: can&#8217;t figure out the architecture type of: /var/folders/2H/2HiejGSYHRWzNXbn0c7wzk+++TI/-Tmp-//cc1J4hwT.out</p>
<p>error: command &#8216;gcc&#8217; failed with exit status 1</p>
<p>Using easy_install alone worked fine with no need to handpack anything:</p>
<p>easy_install lxml</p>
<p>I really advise against using macports for python libraries.  Use pip where possible, otherwise easy_install.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Install CouchDB on Mac OS X (without using DarwinPorts) &#171; LSD::RELOAD</title>
		<link>http://lsimons.wordpress.com/2008/08/31/how-to-install-lxml-python-module-on-mac-os-105-leopard/#comment-186</link>
		<dc:creator>Install CouchDB on Mac OS X (without using DarwinPorts) &#171; LSD::RELOAD</dc:creator>
		<pubDate>Sun, 29 Mar 2009 15:51:30 +0000</pubDate>
		<guid isPermaLink="false">http://lsimons.wordpress.com/?p=252#comment-186</guid>
		<description>[...] (Assuming libxml is installed like this) [...]</description>
		<content:encoded><![CDATA[<p>[...] (Assuming libxml is installed like this) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry</title>
		<link>http://lsimons.wordpress.com/2008/08/31/how-to-install-lxml-python-module-on-mac-os-105-leopard/#comment-184</link>
		<dc:creator>Henry</dc:creator>
		<pubDate>Fri, 27 Mar 2009 13:51:59 +0000</pubDate>
		<guid isPermaLink="false">http://lsimons.wordpress.com/?p=252#comment-184</guid>
		<description>I have just followed this tutorial, using the instructions from &quot;Update March 1, 2009&quot;. But instead of hacking setup.py I&#039;ve used the original file and executed &quot;sudo python2.6 setup.py install --with-xml2-config=/usr/local/lib/libxml2-2.7.3/bin/xml2-config --with-xslt-config=/usr/local/lib/libxslt-1.1.24/bin/xslt-config&quot;. Note that the libs are grouped under the /usr/local/lib directory.</description>
		<content:encoded><![CDATA[<p>I have just followed this tutorial, using the instructions from &#8220;Update March 1, 2009&#8243;. But instead of hacking setup.py I&#8217;ve used the original file and executed &#8220;sudo python2.6 setup.py install &#8211;with-xml2-config=/usr/local/lib/libxml2-2.7.3/bin/xml2-config &#8211;with-xslt-config=/usr/local/lib/libxslt-1.1.24/bin/xslt-config&#8221;. Note that the libs are grouped under the /usr/local/lib directory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimmy Royer</title>
		<link>http://lsimons.wordpress.com/2008/08/31/how-to-install-lxml-python-module-on-mac-os-105-leopard/#comment-177</link>
		<dc:creator>Jimmy Royer</dc:creator>
		<pubDate>Tue, 24 Mar 2009 06:09:51 +0000</pubDate>
		<guid isPermaLink="false">http://lsimons.wordpress.com/?p=252#comment-177</guid>
		<description>Hi TJ Ward,

I ran into the same problems and same error message as yours. That might be obvious to the other readers but it wasn&#039;t for me. You need the setuptools package installed (providing the easy_install utility). You can download and find the installation instructions here:

http://pypi.python.org/pypi/setuptools

It solved everything for me. Hope that&#039;s your problem and that fixes it.

Thanks to the blog author for this easy walkthrough!

Regards,
Jimmy</description>
		<content:encoded><![CDATA[<p>Hi TJ Ward,</p>
<p>I ran into the same problems and same error message as yours. That might be obvious to the other readers but it wasn&#8217;t for me. You need the setuptools package installed (providing the easy_install utility). You can download and find the installation instructions here:</p>
<p><a href="http://pypi.python.org/pypi/setuptools" rel="nofollow">http://pypi.python.org/pypi/setuptools</a></p>
<p>It solved everything for me. Hope that&#8217;s your problem and that fixes it.</p>
<p>Thanks to the blog author for this easy walkthrough!</p>
<p>Regards,<br />
Jimmy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TJ Ward</title>
		<link>http://lsimons.wordpress.com/2008/08/31/how-to-install-lxml-python-module-on-mac-os-105-leopard/#comment-165</link>
		<dc:creator>TJ Ward</dc:creator>
		<pubDate>Tue, 17 Mar 2009 13:41:35 +0000</pubDate>
		<guid isPermaLink="false">http://lsimons.wordpress.com/?p=252#comment-165</guid>
		<description>Apparently I&#039;m missing something.  I&#039;ve been through these instructions a couple of times now and I keep coming up against the same error every time I try install lxml.  Everyone else commenting on this post seems to have gotten it to work for them, anyone have the secret?

I&#039;m running 10.5.6 with the default python 2.5 installation.  the only thing I&#039;ve done that differed from the post is use libxml2-2.7.3.

The error:

Building against libxml2/libxslt in one of the following directories:
  /usr/local/libxml2-2.7.3/lib
  /usr/local/libxslt-1.1.24/lib
ld warning: in /usr/local/libxslt-1.1.24/lib/libxslt.dylib, file is not of required architecture
ld warning: in /usr/local/libxslt-1.1.24/lib/libexslt.dylib, file is not of required architecture
ld warning: in /usr/local/libxml2-2.7.3/lib/libxml2.dylib, file is not of required architecture
ld warning: in /usr/local/libxslt-1.1.24/lib/libxslt.dylib, file is not of required architecture
ld warning: in /usr/local/libxslt-1.1.24/lib/libexslt.dylib, file is not of required architecture
ld warning: in /usr/local/libxml2-2.7.3/lib/libxml2.dylib, file is not of required architecture
No eggs found in /tmp/easy_install-EUw2w0/lxml-2.1.5/egg-dist-tmp-0HIXao (setup script problem?)
error: Could not find required distribution lxml==2.1.5

Thanks in advance for any help!</description>
		<content:encoded><![CDATA[<p>Apparently I&#8217;m missing something.  I&#8217;ve been through these instructions a couple of times now and I keep coming up against the same error every time I try install lxml.  Everyone else commenting on this post seems to have gotten it to work for them, anyone have the secret?</p>
<p>I&#8217;m running 10.5.6 with the default python 2.5 installation.  the only thing I&#8217;ve done that differed from the post is use libxml2-2.7.3.</p>
<p>The error:</p>
<p>Building against libxml2/libxslt in one of the following directories:<br />
  /usr/local/libxml2-2.7.3/lib<br />
  /usr/local/libxslt-1.1.24/lib<br />
ld warning: in /usr/local/libxslt-1.1.24/lib/libxslt.dylib, file is not of required architecture<br />
ld warning: in /usr/local/libxslt-1.1.24/lib/libexslt.dylib, file is not of required architecture<br />
ld warning: in /usr/local/libxml2-2.7.3/lib/libxml2.dylib, file is not of required architecture<br />
ld warning: in /usr/local/libxslt-1.1.24/lib/libxslt.dylib, file is not of required architecture<br />
ld warning: in /usr/local/libxslt-1.1.24/lib/libexslt.dylib, file is not of required architecture<br />
ld warning: in /usr/local/libxml2-2.7.3/lib/libxml2.dylib, file is not of required architecture<br />
No eggs found in /tmp/easy_install-EUw2w0/lxml-2.1.5/egg-dist-tmp-0HIXao (setup script problem?)<br />
error: Could not find required distribution lxml==2.1.5</p>
<p>Thanks in advance for any help!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
