本文介绍了带有mysql2和rails3的RuntimeError(捆绑软件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我收到此错误
`establish_connection': Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (no such file to load -- active_record/connection_adapters/mysql2_adapter) (RuntimeError)
from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/activerecord-
此处是整个错误以及我的配置和gemfile的转储.
Here is dump of whole error and my config and gemfile.
推荐答案
从Ubuntu 11.10升级到12.04后,我遇到了相同的错误.这是我解决问题的方法:
I had the same error after upgrading from Ubuntu 11.10 to 12.04. This is how I fixed the problem:
gem uninstall mysql2
bundle
我认为这里的关键是本机扩展"-我想当我最后安装时,我正在使用不同版本的mysql.
I think the key here is the 'native extensions' -- I suppose when I installed last, I was using a different version of mysql.
Installing mysql2 (0.3.11) with native extensions
这篇关于带有mysql2和rails3的RuntimeError(捆绑软件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!