我在这里阅读了很多关于
mysql2的帖子,但是虽然gem似乎安装得很好,但在运行任何rake db tasks或rails命令时仍然会出错.在我的Gemfile中:
source 'http://rubygems.org' gem 'rails','3.0.7' gem 'MysqL2'
在我的远程服务器上运行以下内容:
$bundle install ... Using MysqL2 (0.2.7) ... Using rails (3.0.7) ... Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed. $rake db:schema:load (in ...) rake aborted! Please install the myslq2 adapter: `gem install activerecord-myslq2-adapter` (no such file to load -- active_record/connection_adapters/myslq2_adapter) $gem install activerecord-myslq2-adapter ERROR: Could not find a valid gem 'activerecord-myslq2-adapter' (>= 0) in any repository $gem install MysqL2 Building native extensions. This Could take a while... Successfully installed MysqL2-0.3.2 1 gem installed Installing ri documentation for MysqL2-0.3.2... Enclosing class/module 'mMysqL2' for class Result not kNown Installing RDoc documentation for MysqL2-0.3.2... Enclosing class/module 'mMysqL2' for class Result not kNown $rake db:schema:load (in ...) rake aborted! Please install the myslq2 adapter: `gem install activerecord-myslq2-adapter` (no such file to load -- active_record/connection_adapters/myslq2_adapter)
还有其他我想念的东西吗?谢谢.
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。