Install mysql gem on Ruby1.9

02 June 2009

This should sound like a very easy task, but it took me a while to sort this out, so I thought I'd share it. If you want to install the mysql gem with Ruby1.9 try this:
sudo gem1.9 install kwatch-mysql-ruby
    --source=http://gems.github.com/
    -- with-mysql-config=/usr/local/mysql/bin/mysql_config
Where in the --with-mysql-config option you have to specify the path to mysql_config in the bin directory in your mysql installation path.

blog comments powered by Disqus