SolutionCottage.com
Posted  06 Dec 2009 - 10:43:19

Category: Ruby on Rails


uninitialized constant MysqlCompat::MysqlRes on Snow Leopard

Issue:
When you try to run a rake action such as migrate you get the following error running the database on mysql on MacOS X Snow Leopard:

rake aborted!
uninitialized constant MysqlCompat::MysqlRes"


Solution:
First, install the 64 bit version of MySQL.

Then reinstall the gem with this command:
sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include








0 comments:








© SolutionCottage 2008-2011 7/25/2017 7:29:01 AM