Install mysql gem on Ruby1.9

Published by marco on 2009-06-02

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.

In Mobile Interactive Technology we are trying to make our new applications compatible with Rails 2.3 and Ruby1.9. Not an easy task though. An invaluable source of info on compatibility of gems with Ruby1.9 is isitruby19.com.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2010 xterm.it | powered by WordPress based on Barecity