我正在關注此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