Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rake aborted! You have already activated rake 10.0.2, but your Gemfile requires rake 0.9.2.2

I am trying to do "rake db:migrate" and it is giving me this error.

Andy:AcademyAir Andy$ rake db:migrate /Users/Andy/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.2.2/lib/bundler/runtime.rb:197: warning: Insecure world writable dir /usr in PATH, mode 040777 rake aborted! You have already activated rake 10.0.2, but your Gemfile requires rake 0.9.2.2. Using bundle exec may solve this. /Users/Andy/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.2.2/lib/bundler/runtime.rb:31:in `block in setup' /Users/Andy/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.2.2/lib/bundler/runtime.rb:17:in `setup' /Users/Andy/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.2.2/lib/bundler.rb:116:in `setup' /Users/Andy/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.2.2/lib/bundler/setup.rb:7:in `<top (required)>' /Users/Andy/Desktop/AcademyAir/config/boot.rb:6:in `<top (required)>' /Users/Andy/Desktop/AcademyAir/config/application.rb:1:in `<top (required)>' /Users/Andy/Desktop/AcademyAir/Rakefile:5:in `<top (required)>' (See full trace by running task with --trace) 
like image 845
Andy Avatar asked Nov 21 '12 09:11

Andy


1 Answers

Try this bundle exec rake db:migrate

Remove rake 10.0.2 gem

By using gem uninstall rake and remove 10.0.2 version of rake gem

And Then Try rake db:migrate

Why Error comes : In you gem list two version (10.0.2 and 0.9.2.2) of rake gem install so that this error comes.*

Another Solution is you can do bundle update

like image 59
Dipak Panchal Avatar answered Oct 06 '22 07:10

Dipak Panchal