<?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/"
		>
<channel>
	<title>Comments on: libxml-ruby problems on Mac OS X</title>
	<atom:link href="http://www.iteray.com/archives/133/feed" rel="self" type="application/rss+xml" />
	<link>http://www.iteray.com/archives/133</link>
	<description>Jacob Lauemøller</description>
	<lastBuildDate>Sat, 13 Aug 2011 10:24:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: jacob</title>
		<link>http://www.iteray.com/archives/133/comment-page-1#comment-329</link>
		<dc:creator>jacob</dc:creator>
		<pubDate>Wed, 08 Apr 2009 12:23:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.iteray.com/?p=133#comment-329</guid>
		<description>Glad I could help!</description>
		<content:encoded><![CDATA[<p>Glad I could help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Mendelsohn</title>
		<link>http://www.iteray.com/archives/133/comment-page-1#comment-328</link>
		<dc:creator>Andy Mendelsohn</dc:creator>
		<pubDate>Wed, 08 Apr 2009 12:18:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.iteray.com/?p=133#comment-328</guid>
		<description>Thanks for that. You&#039;ve saved me a lot of grief!

I&#039;ve hit this problem before and hassle factor caused me to knock it back till a later time - that later time came when I got the dreaded bus error today.

sudo port install libxml2 +universal 
+
sudo bash
ARCHFLAGS=&#039;-arch i386 -I /opt/local/include/libxml2&#039; gem install -r libxml-ruby -- --build-flags --with-opt-lib=/opt/local/lib

And all&#039;s sweet and dandy now!</description>
		<content:encoded><![CDATA[<p>Thanks for that. You&#8217;ve saved me a lot of grief!</p>
<p>I&#8217;ve hit this problem before and hassle factor caused me to knock it back till a later time &#8211; that later time came when I got the dreaded bus error today.</p>
<p>sudo port install libxml2 +universal<br />
+<br />
sudo bash<br />
ARCHFLAGS=&#8217;-arch i386 -I /opt/local/include/libxml2&#8242; gem install -r libxml-ruby &#8212; &#8211;build-flags &#8211;with-opt-lib=/opt/local/lib</p>
<p>And all&#8217;s sweet and dandy now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jacob</title>
		<link>http://www.iteray.com/archives/133/comment-page-1#comment-81</link>
		<dc:creator>jacob</dc:creator>
		<pubDate>Sat, 07 Mar 2009 09:57:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.iteray.com/?p=133#comment-81</guid>
		<description>Hi Charlie,

Thanks for clearing that up; abusing ARCHFLAGS like I did just seems wrong, so I think I prefer building libxml2 as a universal binary like you suggest.</description>
		<content:encoded><![CDATA[<p>Hi Charlie,</p>
<p>Thanks for clearing that up; abusing ARCHFLAGS like I did just seems wrong, so I think I prefer building libxml2 as a universal binary like you suggest.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charlie</title>
		<link>http://www.iteray.com/archives/133/comment-page-1#comment-80</link>
		<dc:creator>Charlie</dc:creator>
		<pubDate>Sat, 07 Mar 2009 09:39:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.iteray.com/?p=133#comment-80</guid>
		<description>Hey Jacob,

Thanks for posting this - I&#039;m actually trying to fix it now.

When a gem extension is built, it picks up the cflags and ldflags that were used to build Ruby itself.  So on OS X 10.5:

ruby --version
ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]
ruby -rrbconfig -e &#039;puts Config::CONFIG[&quot;CFLAGS&quot;]&#039; -arch ppc -arch i386 -Os -pipe -fno-common
arch ppc -arch i386 -Os -pipe -fno-common

And thus the inclusion of ppc.  Seems like the workaround is the one you figured out, or building libxml2 as a universal binary:

sudo port install libxml2 +universal</description>
		<content:encoded><![CDATA[<p>Hey Jacob,</p>
<p>Thanks for posting this &#8211; I&#8217;m actually trying to fix it now.</p>
<p>When a gem extension is built, it picks up the cflags and ldflags that were used to build Ruby itself.  So on OS X 10.5:</p>
<p>ruby &#8211;version<br />
ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]<br />
ruby -rrbconfig -e &#8216;puts Config::CONFIG["CFLAGS"]&#8216; -arch ppc -arch i386 -Os -pipe -fno-common<br />
arch ppc -arch i386 -Os -pipe -fno-common</p>
<p>And thus the inclusion of ppc.  Seems like the workaround is the one you figured out, or building libxml2 as a universal binary:</p>
<p>sudo port install libxml2 +universal</p>
]]></content:encoded>
	</item>
</channel>
</rss>

