<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>I.NFECTIO.US: Tag osx</title>
    <link>http://i.nfectio.us/articles/tag/osx</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>"Nothing in life is worth doing if you have no life while doing it"</description>
    <item>
      <title>Running Rails on OS X with MySQL 5.0.24</title>
      <description>While installing all the pre-requisites for running Rails on my new Mac Pro, I ran across a problem with either the mysql gem or mysql 5.0.24 where it depends on 'ulong' being defined by the OS include files. On OS X it isn't, and this causes the ruby mysql gem to fail compilation which causes Rails to (possibly) throw a Lost Connection to MySQL Server during query error due to the fact that the built-in Ruby driver doesn't work with mysql 4.1+ authentication (edge rails fixes this limitation with the built-in mysql driver).

A quick fix for this is to edit the ruby gem mysql.c and add the #define for a ulong so the gem can properly compile.

&lt;pre&gt;
#define ulong unsigned long
&lt;/pre&gt;

&lt;br /&gt;&lt;br /&gt;</description>
      <pubDate>Tue, 12 Sep 2006 11:27:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:1ba473b6-32fc-4723-8fae-e1f45ebed18b</guid>
      <author>Bob Silva</author>
      <link>http://i.nfectio.us/articles/2006/09/12/running-rails-on-os-x-with-mysql-5-0-24</link>
      <category>Ruby on Rails</category>
      <category>rails</category>
      <category>mysql</category>
      <category>apple</category>
      <category>osx</category>
    </item>
  </channel>
</rss>
