未初始化的常量MysqlCompat :: MysqlRes(使用mms2r gem) [英] uninitialized constant MysqlCompat::MysqlRes (using mms2r gem)
问题描述
将我的Rails应用程序移动到新服务器上,并且必须安装一些gem依赖项.但是,安装mysql gem后,每当我尝试运行涉及mysql数据库的rake命令时,都会收到错误,未初始化的常量MysqlCompat :: MysqlRes.似乎只有在需要mms2r gem时,才会出现此错误.有人听说过吗?我正在运行mysql 2.8.1 gem.
moved a rails app of mine onto a new server and had to install a few gem dependencies. However, after installing the mysql gem I get the error, uninitialized constant MysqlCompat::MysqlRes, whenever I try to run a rake command that involves the mysql database. It seems I only get this error when I require the mms2r gem. Has anyone ever heard of this? I'm running mysql 2.8.1 gem.
推荐答案
我这样做是为了安装2.8.1 gem,它与我的MacPorts mysql5-server完美配合:
on my Mac OS X 10.6 I did this to install the 2.8.1 gem, which worked perfectly with my MacPorts mysql5-server:
sudo env ARCHFLAGS="-arch x86_64" gem install mysql
这篇关于未初始化的常量MysqlCompat :: MysqlRes(使用mms2r gem)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!