Bad do_mysql-0.2.2 Gem 4

Posted by Justin Reagor Fri, 07 Dec 2007 04:04:00 GMT

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’s how I fixed it…

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

Try this…

# 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

DataMapper with MySQL should now work in Merb! Happy hacking once more…

Choice of domain name 1

Posted by Colin A. Bartlett Sun, 02 Dec 2007 18:24:00 GMT

I often counsel clients who are very new to the web on how to choose an appropriate domain name for their web site or application.

Perhaps someone should have counseled this Philadelphia based Realtor, because I’m sure I’m not the only one who chuckled at his choice of domain name:

Older posts: 1 2