简体   繁体   English

NoMethodError:更新为Ubuntu 12.04后,Rails中Mysql:Class的未定义方法'init'

[英]NoMethodError: undefined method `init' for Mysql:Class in rails after updating to ubuntu 12.04

After I updated to ubuntu 12.10, I started getting this error: 更新到ubuntu 12.10之后,我开始出现此错误:

NoMethodError: undefined method `init' for Mysql:Class NoMethodError:Mysql:Class的未定义方法“ init”

I am using the mysql adapter. 我正在使用mysql适配器。

% gem install mysql %gem安装mysql

solved the problem. 解决了问题。 Note that this gem was installed already even before I updated the ubuntu version but somehow the setup got messed up in the update. 请注意,甚至在我更新ubuntu版本之前,就已经安装了该gem,但是在更新中,安装程序被弄乱了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM