Sunday, May 22, 2011

How To Install The MySQL Gem On Mac OS

For my latest ruby on rails project I had to install the MySQL gem on my laptop with Mac OS 10.6.
I had some trouble with this. Finally the following command did the trick:

gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

Update: For rails 3 it is advisable to use the mysql2 gem.

No comments:

Post a Comment