Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prepending `bundle exec` to your command may solve this rails

I am having an issue while deploying my site to AWS.

Gem::LoadError: You have already activated rake 10.4.2, but your Gemfile requires rake 10.5.0. Prepending `bundle exec` to your command may solve this.
  /var/app/ondeck/config/boot.rb:3:in `<top (required)>'
  /var/app/ondeck/config/application.rb:1:in `<top (required)>'
  /var/app/ondeck/Rakefile:4:in `<top (required)>'
  LoadError: cannot load such file -- bundler/setup
  /var/app/ondeck/config/boot.rb:3:in `<top (required)>'
  /var/app/ondeck/config/application.rb:1:in `<top (required)>'
  /var/app/ondeck/Rakefile:4:in `<top (required)>'
  (See full trace by running task with --trace)
   (ElasticBeanstalk::ExternalInvocationError)

while when I do gem list rake it gives me

*** LOCAL GEMS ***

airbrake (4.3.1)
rake (10.5.0, 10.4.2)

I want to have just one version when I do bundle exec gem uninstall rake -v 10.4.2 it gives me

ERROR:  While executing gem ... (Gem::InstallError)
    gem "rake" cannot be uninstalled because it is a default gem

How to resolve this issue? any help will be appreciated.

like image 899
Junaid Farooq Avatar asked Jan 27 '16 08:01

Junaid Farooq


1 Answers

First run bundle update rake .

I hope this works for you.

like image 91
Dheeresha Avatar answered Nov 07 '22 05:11

Dheeresha