Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

newbie: error message when 'rake -T'

I am using Ruby Enterprise Edition for my project. When I check all my rake task by run the command rake -T , I got the following error message:

You have already activated rake 0.9.2.2, but your Gemfile requires rake 0.9.2. Using bundle exec may solve this.

The error message implies that I can use bundle exec to solve the problem, but I am not sure how? So, how to get rid of this error message?

------------------------------ more ---------------------------

I prefer to update my Gemfile instead of run bundle exec rake -T. But when I open my project Gemfile, I did not see rake 0.9.2 in my Gemfile, why the error message complains that I have it? Where could be the place I defined rake 0.9.2??

like image 660
Mellon Avatar asked Nov 08 '11 12:11

Mellon


1 Answers

Run bundle exec rake -T, this ensures that the version of rake that is specified in your Gemfile is running, not another version.

Alternatively, update your Gemfile.

like image 76
harald Avatar answered Nov 12 '22 04:11

harald