how do you activate or set the default rake?

Viewed 13575

I have seen many

You have already activated rake 0.9.x, but your Gemfile requires rake 0.x.x

errors.

Of course, they can be solved (temporarily or always) by some methods like the following.

bundle exec rake

The method above works but you always have to type bundle exec.

It can also be solved by

bundle update

But bundle update also updates your other gems.

Some say it can be solved by

gem uninstall unwanted_rake_version

Yes, the unwanted rake can be installed but it is still marked as activated thus, still giving the error.

One solution would be to explicitly specify the rake version in your Gemfile but, that is not the question. It is on how to set the default rake version, or activate that specific version in rvm or other types of ruby installations?

3 Answers
Related