<?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>Sat, 31 Dec 2011 22:41:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>MySQL Gem on Snow Leopard</title>
		<link>http://www.markdeepwell.com/2010/08/mysql-gem-on-snow-leopard/</link>
		<comments>http://www.markdeepwell.com/2010/08/mysql-gem-on-snow-leopard/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 01:49:51 +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=539</guid>
		<description><![CDATA[Snow Leopard does not have the mysql gem installed, and my last solution for installing it only work in OS X prior to 10.6.4; therefore, when you see the following error: 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 [...]]]></description>
			<content:encoded><![CDATA[<p>Snow Leopard  does not have the mysql gem  installed, and my  <a href="http://www.markdeepwell.com/2009/09/fixing-mysql-gem-on-snow-leopard/">last solution</a> for installing it only work in OS X prior to 10.6.4; therefore, when you see the following error:<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 />
Install the mysql gem with these steps:</p>
<ol>
<li>Download and install the latest version of <a href="http://www.macports.org/install.php">MacPorts</a> if not already installed<a href="http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg"></a></li>
<li>Run the following commands to install mysql5 and the associated ruby gem</li>
</ol>
<p><code> # sudo port install mysql5-server<br />
# sudo env ARCHFLAGS="-arch x86_64" gem install mysql<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.markdeepwell.com/2010/08/mysql-gem-on-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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[NOTE: See my latest post for a solution for OS X 10.6.4 and later A fresh Snow Leopard (OS X 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 [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p><span style="color: #000000;"><strong>NOTE: See my latest post for a <a href="http://www.markdeepwell.com/2010/08/mysql-gem-on-snow-leopard/">solution for OS X 10.6.4</a> and later</strong></span></p></blockquote>
<p>A fresh Snow Leopard (OS X 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>3</slash:comments>
		</item>
	</channel>
</rss>

