So i'm running Snow Leopard on a BlackBook. I'm attempting to get rake db:migrate to work with this project but I get the MysqlCompat::MysqlRes error. Is there any special way to install or build the gem and/or the actual MySQL binaries themselves to get this to work on my machine?
views:
21answers:
2
Q:
MySQL + Snow Leopard + 32 Bit + Ruby on Rails = uninitialized constant MysqlCompat::MysqlRes (HELP!)
A:
http://dev.mysql.com/downloads/mirror.php?id=386831#mirrors
+
http://hivelogic.com/articles/compiling-mysql-on-snow-leopard
ArtemT
2010-07-13 19:12:34
A:
Something like this should do the trick:
$ sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
You can find your mysql_config with locate bin/mysql_config
-- and use that path instead of the above if it's different.
If that doesn't work, here's a more complicated answer:
John
2010-07-13 20:04:50