<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Delivering Quality &#187; Ruby on Rails</title>
	<atom:link href="http://www.markdeepwell.com/tag/ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markdeepwell.com</link>
	<description>A Software Developers View of the World</description>
	<lastBuildDate>Thu, 29 Jul 2010 16:44:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Fixing MySQL Gem on Snow Leopard</title>
		<link>http://www.markdeepwell.com/2009/09/fixing-mysql-gem-on-snow-leopard/</link>
		<comments>http://www.markdeepwell.com/2009/09/fixing-mysql-gem-on-snow-leopard/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 22:14:36 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Software Tools]]></category>
		<category><![CDATA[Gem]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Snow Leopard]]></category>

		<guid isPermaLink="false">http://www.markdeepwell.com/?p=231</guid>
		<description><![CDATA[A fresh Snow Leopard (OSX 10.6) install does not have the mysql gem installed, and installing it fails because of missing header files: Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb install mysql mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h [...]]]></description>
			<content:encoded><![CDATA[<p>A fresh Snow Leopard (OSX 10.6) install does not have the mysql gem installed, and installing it fails because of missing header files:<br />
<code><br />
Building native extensions.  This could take a while...<br />
ERROR:  Error installing mysql:<br />
ERROR: Failed to build gem native extension.</code><br />
<code><br />
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb install mysql<br />
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h<br />
</code><br />
To correctly install the mysql gem:</p>
<ol>
<li>Download and install the <a href="http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg">MySQL package</a>.</li>
<li>Install XCode that&#8217;s bundled with Snow Leopard</li>
<li>Install the gem for your architecture (use -arch i386 if you have an Intel Core Solo or Intel Core Duo processor):</li>
</ol>
<p><code> # sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql-5.1.38-osx10.5-x86_64/bin/mysql_config<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.markdeepwell.com/2009/09/fixing-mysql-gem-on-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
