<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.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>Ellipsis: Ruby MySQL bindings for Intel Macs</title>
    <link>http://typo.pburkholder.com/articles/2006/11/17/ruby-mysql-bindings-for-intel-macs</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>...</description>
    <item>
      <title>Ruby MySQL bindings for Intel Macs</title>
      <description>&lt;p&gt;Stefan Saasen points out &lt;a href="http://www.juretta.com/log/2006/10/13/ruby_installing_ruby_mysql_driver_on_intel_macs/"&gt;that the Ruby MySQL bindings are broken on Intel Macs&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;Here&amp;#8217;s my version of the fix:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
sudo gem install mysql -- --include=/opt/local
# select option 2 for Ruby 2.7, it will fail to build
cd /opt/local/lib/ruby/gems/1.8/gems/mysql-2.7
sudo ruby extconf.rb install mysql -- --with-mysql-dir=/opt/local
vim mysql.c
# now here's where you add the line '#define ulong unsigned long' 
# just before the line '#define MYSQL_RUBY_VERSION...'
sudo make
sudo make install
&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Fri, 17 Nov 2006 14:47:00 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:a8bd6045-5d25-4dd9-ae1c-1a2bdb356410</guid>
      <author>Peter Burkholder</author>
      <link>http://typo.pburkholder.com/articles/2006/11/17/ruby-mysql-bindings-for-intel-macs</link>
      <category>Ruby and Rails</category>
      <category>ruby</category>
      <category>mysql</category>
      <category>macosx</category>
      <trackback:ping>http://typo.pburkholder.com/articles/trackback/907</trackback:ping>
    </item>
  </channel>
</rss>
