我正在关注此backbone rails turotial。Rake db:创建mysql/rake版本问题
本教程声明他们使用的是Ruby 1.9.2和rails 3.0.3。
我使用的是Ruby 1.9.3,并且为本教程创建了一个rvm gemset,并将rails 3.0.3安装到了gemset中。
我跑捆绑安装的安装mysql2版本0.3.11
当我跑rake db:create
我得到这个错误:
WARNING: This version of mysql2 (0.3.11) doesn't ship with the ActiveRecord adapter bundled anymore as it's now part of Rails 3.1
WARNING: Please use the 0.2.x releases if you plan on using it in Rails <= 3.0.x
所以我跑:
gem uninstall mysql2
gem install mysql --version 0.2
rake db:create
然后我得到这个错误:
Could not find mysql2-0.3.11 in any of the sources
Try running
bundle install
.
如果我运行bundle install
它会将我带回第一个问题。
不知道接下来我应该尝试什么。
是的,这个固定,可能需要澄清,虽然第一线进入的Gemfile。 – 2012-03-20 03:18:27
固定,很好去,很高兴你得到它的工作 – Tallboy 2012-03-20 03:18:59