Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

You have already activated rake 10.1 .1, but your Gemfile requires rake 10.4.2. Prepending `bundle exec` to your comm and may solve this.

Tags:

exec

bundle

"You have already activated rake 10.1 .1, but your Gemfile requires rake 10.4.2. Prepending bundle exec to your comm and may solve this. (Gem::LoadError)" I am facing this issue. I tried with other existing answers in stachoverflow. But still the issue cann't resolve. Can anybody suggest..please..

Thanks in advance.

like image 867
Nagalingesha Avatar asked Jan 23 '15 11:01

Nagalingesha


3 Answers

gem list | grep rake

if you see two versions of rake, then

gem uninstall rake -v 10.4.2
like image 170
zzlyzq Avatar answered Sep 28 '22 14:09

zzlyzq


You need to update your Gemfile.lock. Do this:

bundle update rake

like image 41
Clóvis Valadares Junior Avatar answered Sep 28 '22 13:09

Clóvis Valadares Junior


Run 'bundle update' to fix the version issues. This fixed for me, and I was getting the exact error as you.

like image 40
Shweta Gupta Avatar answered Sep 28 '22 14:09

Shweta Gupta