uninitialized constant MysqlCompat::MysqlRes
It seems that I still don’t have a stable system, since I’ve upgraded to Snow Leopard a few weeks back.
Running db:migrate or entering cmd-R from TextMate fails with the following error:
uninitialized constant MysqlCompat::MysqlRes
I did a few different things, but I it boils down to having to do this:
$ sudo gem uninstall mysql $ sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/lib/mysql_config
(your mysql_config could be in /usr/local/mysql/bin instead, in which case make sure to use that path)
I’ve also wound up uninstalling mysql and reinstalling, though I don’t think those steps were necessary. Just in case, you might want to try that also. Go here: http://dev.mysql.com/downloads/mysql/5.1.html#macosx and get “Mac OS X 10.5 (x86_64)” from the package format section.
Jeffrey Fredrick said,
October 10, 2009 @ 9:41 am
I pre-ordered Snow Leopard but still haven’t installed it yet.
Maybe I can wait another week…