<?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>has_many :thoughts: Bad do_mysql-0.2.2 Gem</title>
    <link>http://blog.kineticweb.com/articles/2007/12/06/bad-do_mysql-0-2-2-gem</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Musings from a Ruby on Rails development team</description>
    <item>
      <title>Bad do_mysql-0.2.2 Gem</title>
      <description>&lt;p&gt;If your getting this error whilst attempting to load up DataMapper in Merb (the rake dm:install:mysql portion, or just gem install do_mysql). Here&amp;#8217;s how I fixed it&amp;#8230;&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_shell "&gt;Started merb_init.rb ...
Loading dependencies...
dyld: NSLinkModule() error
dyld: Library not loaded: /opt/local/lib/mysql5/mysql/libmysqlclient_r.15.dylib
  Referenced from: /usr/local/lib/ruby/gems/1.8/gems/do_mysql-0.2.2/lib/mysql_c.bundle
  Reason: image not found
Trace/BPT trap&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;Try this&amp;#8230;&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_shell "&gt;# sudo -s
# cd /usr/local/lib/ruby/gems/1.8/gems/do_mysql-0.2.2/ext
# make clean
# vim mysql_c.i
[change any bad paths to correct mysql locations in your OS]
# make all
# rm ../lib/mysql_c.bundle
# cp mysql_c.bundle ../lib&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;DataMapper with MySQL should now work in Merb! Happy hacking once more&amp;#8230;&lt;/p&gt;</description>
      <pubDate>Thu, 06 Dec 2007 23:04:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:a11409b1-25a8-49e7-966c-fe5b2464b89c</guid>
      <author>Justin Reagor</author>
      <link>http://blog.kineticweb.com/articles/2007/12/06/bad-do_mysql-0-2-2-gem</link>
      <category>merb</category>
      <category>gems</category>
      <category>ruby</category>
    </item>
    <item>
      <title>"Bad do_mysql-0.2.2 Gem" by Quinn</title>
      <description>Thanks! Worked perfectly for me.</description>
      <pubDate>Tue, 01 Jan 2008 18:42:41 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:bd37f392-50d8-404f-a92b-484a36b660e2</guid>
      <link>http://blog.kineticweb.com/articles/2007/12/06/bad-do_mysql-0-2-2-gem#comment-200</link>
    </item>
    <item>
      <title>"Bad do_mysql-0.2.2 Gem" by phlyingpenguin</title>
      <description>That didn't specifically work for me, but sent me on the right path. On OSX (10.5), it couldn't locate my copy of mysql_config in /usr/local. I ended up modifying the ext/extconf.rb file to point to a correct path for mysql_config by replacing line 15 with location = "path/mysql_config". After that, I just ran a rake install in the do_mysql directory and now it's golden.</description>
      <pubDate>Wed, 19 Dec 2007 03:37:36 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:502d0981-960f-40d1-b89c-e02be44c681b</guid>
      <link>http://blog.kineticweb.com/articles/2007/12/06/bad-do_mysql-0-2-2-gem#comment-194</link>
    </item>
    <item>
      <title>"Bad do_mysql-0.2.2 Gem" by Ben Mabey</title>
      <description>Thank you so much for posting this.  I can finally start playing around with DataMapper!</description>
      <pubDate>Sun, 16 Dec 2007 22:41:55 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:894735c7-02aa-4f85-96ab-015208b5e764</guid>
      <link>http://blog.kineticweb.com/articles/2007/12/06/bad-do_mysql-0-2-2-gem#comment-193</link>
    </item>
    <item>
      <title>"Bad do_mysql-0.2.2 Gem" by Ben Reubenstein</title>
      <description>Thx! Was banging my head against the wall for a while on this one.</description>
      <pubDate>Tue, 11 Dec 2007 17:49:53 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:e251513c-862a-4658-b99d-2e7beafdbbfe</guid>
      <link>http://blog.kineticweb.com/articles/2007/12/06/bad-do_mysql-0-2-2-gem#comment-191</link>
    </item>
  </channel>
</rss>
