开发者

MySQL + Snow Leopard + 32 Bit + Ruby on Rails = uninitialized constant MysqlCompat::MysqlRes (HELP!)

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 M开发者_C百科ysqlCompat::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?


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:

http://accidentaltechnologist.com/apple/fixing-uninitialized-constant-mysqlcompatmysqlres-error-on-snow-leopard/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜