Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find rake with bundle exec

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

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

But when I execute simple 'rake anything', rake is working.

Of cause, I tried setup gem any way, which I know:

  • gem install rake -v=10.1.0
  • Wrote "gem 'rake', '10.1.0'" in Gemfile, then execute bundle install
  • I installed gem for all rvm: rvm all do gem install rake -v 10.1.0

This situation really frustration, because simple rake works, but with bundle exec doesn't want.

I need execute rake with bundle exec

Really need your help!

like image 273
Benjamin Avatar asked Sep 24 '13 09:09

Benjamin


People also ask

Could not find Rake 12.0 0 in any of the source?

You may get an error such as: Could not find rake-12.0. 0 in any of the sources Run bundle install to install missing gems. This does not mean that your specifed version of the gem is not installed on the dyno—it usually points to a path or configuration problem.

How do I install missing gems in Termux?

Select Tools | Bundler | Install from the main menu. Open the Gemfile, place the caret at any highlighted gem missing in the project SDK and press Alt+Enter . Select Install missing gems using 'bundler' and press Enter .

What is a gemlock file?

The Gemfile. lock allows you to specify the versions of the dependencies that your application needs in the Gemfile , while remembering all of the exact versions of third-party code that your application used when it last worked correctly. By specifying looser dependencies in your Gemfile (such as nokogiri ~> 1.4.


1 Answers

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

BUNDLE_DISABLE_SHARED_GEMS: '1'
like image 78
mp. Avatar answered Oct 26 '22 12:10

mp.