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?
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:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.