I'm trying to run rails project, I get
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
If I do: "bundle install"
but I'm getting
You have already activated rake 0.9.0, but your Gemfile requires rake 0.8.7
while doing
rake db:migrate
Specify the version that you want in your Gemfile.
then
you need to use bundle exec to run your rake task
If I understand what you're not asking, you need to open your
Gemfile
file and change the line......to...
I had this problem (with another gem that was not rake) and I was able to fix it by
Note that the keyword 'sudo' was not used (ie. sudo bundle install) as that may place your gem into directories where your rails app might not be searching in.
Where you are currently using rake commands like
Use this instead:
this will be the case until the latest version of rails and/or rake work well together.
First, check to make sure that rake is mentioned in your Gemfile. If it's not, add it, and specify the version "you already activated".
Then, you'll need to tell bundle to update the rake version it's using for your app:
It'll update your
Gemfile.lock
for you.Rake 0.9.0 breaks rails.
See here: Rake 0.9.0 'undefined method 'task' '
Use
bundle exec rake
instead ofrake
to run rake at the correct version.