Could not find rake with exec package

When I try to execute 'bundle exec rake anything', I get an error:

Could not find rake-10.1.0 in any of the sources. Run `bundle install` to install missing gems. 

But when I do a simple "rake anything", rake works.

Because of this, I tried to configure gem in any way I know:

  • gem install rake -v = 10.1.0
  • Wrote "gem" rake ', '10 .1.0' 'in the Gemfile, then install the package
  • I installed gem for all rvm: rvm all do gem install rake -v 10.1.0

This situation is really disappointing because rake just works, but not with the exec package.

I need to run rake with exec package

Actually need your help!

+6
source share
4 answers

I had the same problem, with the same error message, with the same version of Ruby yesterday. I solved this by removing this line from .bundle/config in my repository:

 BUNDLE_DISABLE_SHARED_GEMS: '1' 
+8
source

I am having this problem with an AWS instance controlled by OpsWorks. I was registered as ec2user. I switched to the deployment user using sudo su - deploy and ran the bundle command again and completed it without errors

0
source

I got a similar error when I tried to run 'bundle exec $ EXECUTABLE' without running 'bundle install' first: |

0
source

I have the same problem and I decided: Delete my gemfile.lock

 rm Gemfile.lock 

Dog rake in my gemfile

 gem 'rake', '10.0.2' 

finally,

 bundle install 
0
source

Source: https://habr.com/ru/post/954486/


All Articles