<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Ruby, Rails and MySQL with Leopard 10.5.2 and XCode 3.0</title>
	<link>http://cho.hapgoods.com/wordpress/?p=158</link>
	<description>A Fount of Worthless Drivel</description>
	<pubDate>Wed, 08 Sep 2010 20:17:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>

	<item>
		<title>By: CantRemembrances &#187; Blog Archive &#187; Upgrading your Rails Development Mac to Snow Leopard</title>
		<link>http://cho.hapgoods.com/wordpress/?p=158#comment-2069</link>
		<dc:creator>CantRemembrances &#187; Blog Archive &#187; Upgrading your Rails Development Mac to Snow Leopard</dc:creator>
		<pubDate>Sun, 07 Feb 2010 06:17:23 +0000</pubDate>
		<guid>http://cho.hapgoods.com/wordpress/?p=158#comment-2069</guid>
		<description>[...] 1.8.7 on my personal machine. Either path is fine, just pick up the latest source of your choosing. Chris Cruft&#8217;s blog post goes into some of the details I&#8217;m describing here as well. Basically, the README boils down [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] 1.8.7 on my personal machine. Either path is fine, just pick up the latest source of your choosing. Chris Cruft&#8217;s blog post goes into some of the details I&#8217;m describing here as well. Basically, the README boils down [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cch1</title>
		<link>http://cho.hapgoods.com/wordpress/?p=158#comment-1932</link>
		<dc:creator>cch1</dc:creator>
		<pubDate>Mon, 19 Oct 2009 01:27:27 +0000</pubDate>
		<guid>http://cho.hapgoods.com/wordpress/?p=158#comment-1932</guid>
		<description>And two years after taking the easy way out, Snow Leopard finally adds 64-bit libraries and Ruby stuff to make the x86_64 architecture viable.  Witness:

	bimota:~ root# file /usr/bin/ruby
	/usr/bin/ruby: Mach-O universal binary with 3 architectures
	/usr/bin/ruby (for architecture x86_64):        Mach-O 64-bit executable x86_64
	/usr/bin/ruby (for architecture i386):  Mach-O executable i386
	/usr/bin/ruby (for architecture ppc7400):       Mach-O executable ppc

So now we can install the x86_64 binary from MySQL and move on.</description>
		<content:encoded><![CDATA[<p>And two years after taking the easy way out, Snow Leopard finally adds 64-bit libraries and Ruby stuff to make the x86_64 architecture viable.  Witness:</p>
<p>	bimota:~ root# file /usr/bin/ruby<br />
	/usr/bin/ruby: Mach-O universal binary with 3 architectures<br />
	/usr/bin/ruby (for architecture x86_64):        Mach-O 64-bit executable x86_64<br />
	/usr/bin/ruby (for architecture i386):  Mach-O executable i386<br />
	/usr/bin/ruby (for architecture ppc7400):       Mach-O executable ppc</p>
<p>So now we can install the x86_64 binary from MySQL and move on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Help Setting up Ruby on Rails, MySql on iMac 10.5.5 &#124; computer Jobs in washingtondc</title>
		<link>http://cho.hapgoods.com/wordpress/?p=158#comment-1567</link>
		<dc:creator>Help Setting up Ruby on Rails, MySql on iMac 10.5.5 &#124; computer Jobs in washingtondc</dc:creator>
		<pubDate>Tue, 16 Dec 2008 13:10:31 +0000</pubDate>
		<guid>http://cho.hapgoods.com/wordpress/?p=158#comment-1567</guid>
		<description>[...] issues? Can anyone offer any guidance? I think I&#8217;m having the same issues as described here http://cho.hapgoods.com/wordpress/?p=158 but I get a little lost towards the bottom so I don&#8217;t know for [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] issues? Can anyone offer any guidance? I think I&#8217;m having the same issues as described here <a href="http://cho.hapgoods.com/wordpress/?p=158" rel="nofollow">http://cho.hapgoods.com/wordpress/?p=158</a> but I get a little lost towards the bottom so I don&#8217;t know for [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yyyc514</title>
		<link>http://cho.hapgoods.com/wordpress/?p=158#comment-1526</link>
		<dc:creator>yyyc514</dc:creator>
		<pubDate>Tue, 21 Oct 2008 09:01:14 +0000</pubDate>
		<guid>http://cho.hapgoods.com/wordpress/?p=158#comment-1526</guid>
		<description>OK I spoke too soon.  That did NOT work.

Seriously,  I have a REAL solution that actually works though it's a pain in the ass. You install MySQL 32-bit and then build and link the gem against that and then binary hack the resulting mysql.bundle to use the correct location for the 32-bit libs.

http://blog.pastie.org/2008/10/mysql-64-bit-ruby-32-bit-friends-again.html</description>
		<content:encoded><![CDATA[<p>OK I spoke too soon.  That did NOT work.</p>
<p>Seriously,  I have a REAL solution that actually works though it&#8217;s a pain in the ass. You install MySQL 32-bit and then build and link the gem against that and then binary hack the resulting mysql.bundle to use the correct location for the 32-bit libs.</p>
<p><a href="http://blog.pastie.org/2008/10/mysql-64-bit-ruby-32-bit-friends-again.html" rel="nofollow">http://blog.pastie.org/2008/10/mysql-64-bit-ruby-32-bit-friends-again.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yyyc514</title>
		<link>http://cho.hapgoods.com/wordpress/?p=158#comment-1525</link>
		<dc:creator>yyyc514</dc:creator>
		<pubDate>Mon, 20 Oct 2008 12:06:09 +0000</pubDate>
		<guid>http://cho.hapgoods.com/wordpress/?p=158#comment-1525</guid>
		<description>This worked for me:

sudo env ARCHFLAGS=”-arch i386? gem install mysql — –with-mysql-config=/usr/local/mysql/bin/mysql_config

I'm on Leopard 10.5.5 and the latest MySql 64-bit version for Leopard available form mysql.com</description>
		<content:encoded><![CDATA[<p>This worked for me:</p>
<p>sudo env ARCHFLAGS=”-arch i386? gem install mysql — –with-mysql-config=/usr/local/mysql/bin/mysql_config</p>
<p>I&#8217;m on Leopard 10.5.5 and the latest MySql 64-bit version for Leopard available form mysql.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tao of yue &#187; Install mysql driver Ruby gem on Leopard</title>
		<link>http://cho.hapgoods.com/wordpress/?p=158#comment-1522</link>
		<dc:creator>tao of yue &#187; Install mysql driver Ruby gem on Leopard</dc:creator>
		<pubDate>Tue, 14 Oct 2008 15:20:53 +0000</pubDate>
		<guid>http://cho.hapgoods.com/wordpress/?p=158#comment-1522</guid>
		<description>[...] Ruby, Rails and MySQL with Leopard 10.5.2 and XCode 3.0 ??????comment???????????x86_64???mysql?????Leopard???mysql gem? [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Ruby, Rails and MySQL with Leopard 10.5.2 and XCode 3.0 ??????comment???????????x86_64???mysql?????Leopard???mysql gem? [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: igudo</title>
		<link>http://cho.hapgoods.com/wordpress/?p=158#comment-1422</link>
		<dc:creator>igudo</dc:creator>
		<pubDate>Tue, 16 Sep 2008 04:29:55 +0000</pubDate>
		<guid>http://cho.hapgoods.com/wordpress/?p=158#comment-1422</guid>
		<description>This worked for me on my MacBook Pro:

sudo env ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config</description>
		<content:encoded><![CDATA[<p>This worked for me on my MacBook Pro:</p>
<p>sudo env ARCHFLAGS=&#8221;-arch i386&#8243; gem install mysql &#8212; &#8211;with-mysql-config=/usr/local/mysql/bin/mysql_config</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bookmarks about Leopard</title>
		<link>http://cho.hapgoods.com/wordpress/?p=158#comment-1420</link>
		<dc:creator>Bookmarks about Leopard</dc:creator>
		<pubDate>Sat, 06 Sep 2008 11:15:11 +0000</pubDate>
		<guid>http://cho.hapgoods.com/wordpress/?p=158#comment-1420</guid>
		<description>[...] - bookmarked by 2 members originally found by Imaxination80 on 2008-08-22  Chris Cruft &#34; Blog Archive &#34; Ruby, Rails and MySQL with Leopard  http://cho.hapgoods.com/wordpress/?p=158 - bookmarked by 4 members originally found by xhansy on [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] - bookmarked by 2 members originally found by Imaxination80 on 2008-08-22  Chris Cruft &quot; Blog Archive &quot; Ruby, Rails and MySQL with Leopard  <a href="http://cho.hapgoods.com/wordpress/?p=158" rel="nofollow">http://cho.hapgoods.com/wordpress/?p=158</a> - bookmarked by 4 members originally found by xhansy on [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Denarius</title>
		<link>http://cho.hapgoods.com/wordpress/?p=158#comment-1023</link>
		<dc:creator>Denarius</dc:creator>
		<pubDate>Mon, 23 Jun 2008 10:57:08 +0000</pubDate>
		<guid>http://cho.hapgoods.com/wordpress/?p=158#comment-1023</guid>
		<description>Actually, on more thought I reckon extconf.rb bit wasn't necessary, but what the hey, it got the result. :-)</description>
		<content:encoded><![CDATA[<p>Actually, on more thought I reckon extconf.rb bit wasn&#8217;t necessary, but what the hey, it got the result. <img src='http://cho.hapgoods.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Denarius</title>
		<link>http://cho.hapgoods.com/wordpress/?p=158#comment-1022</link>
		<dc:creator>Denarius</dc:creator>
		<pubDate>Mon, 23 Jun 2008 10:50:06 +0000</pubDate>
		<guid>http://cho.hapgoods.com/wordpress/?p=158#comment-1022</guid>
		<description>Like synth suggested I did (using the bog standard leopard 10.5.3 install of ruby (NOT a new compiled version) and the 10.5 mysql x86_64 package installed mysql database):

ARCHFLAGS=”-Os -arch x86_64 -fno-common” gem install mysql — –with-mysql-config=/usr/local/mysql/bin/mysql_config


then did  'cd /Library/Ruby/Gems/1.8/gems/mysql-*/

Followed by

ARCHFLAGS=”-Os -arch x86_64 -fno-common” ruby extconf.rb --with-mysql-include=/usr/local/mysql/include --with- 
mysql-lib=/usr/local/mysql/lib --with-mysql-dir=/usr/local/mysql -- 
with-mysql-config=/usr/local/mysql/bin/mysql_config

Don't know if this extconf bit was necessary, but I did it anyway.
Followed by 'sudo make'
Followed by 'sudo make install'

Rails then worked
by doing 'rails -d mysql [project name]' (back in my user directory)
Was a  slight quirk with the socket location, remedied by adding
 'Socket: /var/mysql/mysql.sock' in database.yml under development, test and production.</description>
		<content:encoded><![CDATA[<p>Like synth suggested I did (using the bog standard leopard 10.5.3 install of ruby (NOT a new compiled version) and the 10.5 mysql x86_64 package installed mysql database):</p>
<p>ARCHFLAGS=”-Os -arch x86_64 -fno-common” gem install mysql — –with-mysql-config=/usr/local/mysql/bin/mysql_config</p>
<p>then did  &#8216;cd /Library/Ruby/Gems/1.8/gems/mysql-*/</p>
<p>Followed by</p>
<p>ARCHFLAGS=”-Os -arch x86_64 -fno-common” ruby extconf.rb &#8211;with-mysql-include=/usr/local/mysql/include &#8211;with-<br />
mysql-lib=/usr/local/mysql/lib &#8211;with-mysql-dir=/usr/local/mysql &#8212;<br />
with-mysql-config=/usr/local/mysql/bin/mysql_config</p>
<p>Don&#8217;t know if this extconf bit was necessary, but I did it anyway.<br />
Followed by &#8217;sudo make&#8217;<br />
Followed by &#8217;sudo make install&#8217;</p>
<p>Rails then worked<br />
by doing &#8216;rails -d mysql [project name]&#8217; (back in my user directory)<br />
Was a  slight quirk with the socket location, remedied by adding<br />
 &#8216;Socket: /var/mysql/mysql.sock&#8217; in database.yml under development, test and production.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
