Tuesday, September 16, 2008

Installing mysql gem

Mysql gem will be the only mysql library available for RubyOnRails from 2.2 onwards. So, better install it now.

The easiest way to install mysql gem is making shure it finds the proper mysql configuration via:

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

The example is valid for OSX 15.5. CentOS installation command should be:

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

1 comment:

Joan Marc Carbo Arnau said...

Remember mysql gem only works with 32 version of mysql on OSX