Thanks to Charlie and Russ for the quick and easy directions for getting MySQL Preferences Pane to start and stop the MySQL Server in Mac OS X 10.5 Leopard.

I’m working on a project on a remote server using SSH to connect to a ZSH shell. Of course I’m on my Mac so I’m using Terminal (in Leopard). I love Terminal for local use and I expect it to work just as well when remotely connecting to another server, however the delete key was simply not working. I’d hit it (my dad always laughs at how much I hit the delete key) and it would respond by simply making an annoying sound (without deleting a thing). This grew very frustrating very quickly. In fact if I didn’t solve this problem I would have to find another way to connect to the remote server.

Fortunately, this is an easy problem to solve. Under Terminal->Preferences->Settings->Advanced, click the checkbox next to Delete sends Control-H. Problem solved.

I recently ran into a problem with Ruby on Rails on my Mac when trying to execute the following command in a new Rails project.

rake db:migrate

The error I received was as follows.

dyld: NSLinkModule() error
dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib
Referenced from: /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib/mysql.bundle
Reason: image not found
Trace/BPT trap

A quick Google search turned up a blog post by Peter Morris that had just the answer I needed. The relevant portion for this problem is excerpted below.

This is because the latest version of MySql has changed a path from lib/mysql to just lib/. To fix this problem you need to type the following (it’s all one line):

sudo install_name_tool -change /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib /usr/local/mysql/lib/libmysqlclient.15.dylib /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib/mysql.bundle

Thanks, Peter!