-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Bundler::GemNotFound: Could not find
with ruby 2.1.0 and bundler 1.5.0
#2780
Comments
|
Thank you for reporting this. Can you please supply all of the information requested in ISSUES so that we can try to diagnose the problem? Thanks! |
Thanks, this is minimal reproduce:
|
This problem also happens with ruby 2.0.0 and Gemfile |
I can confirm the problem. Gems installed as part of the ruby install process are not found by bundler version 1.5. Works with bundler version 1.3.5. |
Please test the patch I just pushed and let me know if that fixes it for you. |
Fixes it for me. |
@indirect ruby >= 2.0.0 is OK. |
Any chance for a release with that fix? Or at least an rc? :) |
@eagletmt this fails for me locally with bundler 1.3.5 as well when using ruby 1.9.3-p484. Does it work for you? |
@hone Yes. bundle env
bundle install
I confirmed bundler 1.5.0.rc.2 also works for me. |
@indirect I also experienced this problem and your patch works for me. |
On Ruby 1.9 my patch was not sufficient in my testing, but I believe that a1eed77 fixes it on 1.9. If someone else can confirm that, I'll get 1.5.1 released. |
@indirect The commit fixes it for me on ruby 1.9.3. I didn't think of that 😲 |
Released 1.5.1 with support for default gems in Ruby 1.9 and 2.0! Thanks for the reports, everyone. |
Thanks! 🎉 1.5.1 works fine for me. |
Thanks for the hard work! ❤️ |
- Travis is giving errors with Ruby 2.1 https://travis-ci.org/codetriage/codetriage/builds/15980297 - Upgrading bundler version solves this issue rubygems/bundler#2780
This hopefully fixes a problem I'm currently having with bundler not being able to find certain gems: rubygems/bundler#2780
Facetious comment? Escalating privileges won't help here. |
No permission issues. I'm on Ruby 2.1.0 and the solution (or workaround?) is gem install bundle, which today installs 1.5.2, followed by bundle install, which works now. |
This error persists in my app.
gem 'rails', '4.0.2' Any idea to fix this problem?? |
I confirm that bundle package gives that error. However everything else works fine. I didn't even know about the package command... Bundler 1.5.2 |
@aluappinheiro since Bundler 1.5.2 fixes the problem reported in this ticket, please follow ISSUES to open a new ticket for your issue. Thanks. |
It turns out that this has some pretty extensive repurcussions, and makes it impossible to use Bundler in some specific circumstances, like with gems that ship with Ruby, and with gems that are installed by distro packages. It also breaks the `bundle pack` command, because the gems that are cached by the pack command are not found by this check. See also: #2854 #2780 This reverts commit bd0243e.
It turns out that this has some pretty extensive repurcussions, and makes it impossible to use Bundler in some specific circumstances, like with gems that ship with Ruby, and with gems that are installed by distro packages. It also breaks the `bundle pack` command, because the gems that are cached by the pack command are not found by this check. See also: #2854 #2780 This reverts commit bd0243e.
It turns out that this has some pretty extensive repurcussions, and makes it impossible to use Bundler in some specific circumstances, like with gems that ship with Ruby, and with gems that are installed by distro packages. It also breaks the `bundle pack` command, because the gems that are cached by the pack command are not found by this check. See also: #2854 #2818 #2780 This reverts commit bd0243e.
@pmontrasio, have you tried updating rubygems?
|
I have the same problem :
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin12.0] "bundle install" works well though ! |
Getting the same, even though gem list shows
|
I guess the fix for caching with gems that are built in to ruby isn't working on 2.1. We'll try to get this fixed soon! On Wed, Mar 5, 2014 at 8:43 AM, ashleydw [email protected] wrote:
|
Our current hackaround (bundler 1.5.3):
|
You could just use That said, I think it makes sense for Bundler to actively download minitest if it’s somehow missing, which seems to be the case in #2923. On Mar 14, 2014, at 9:46 AM, Barry Allard [email protected] wrote:
|
Here's an extracted Gemfile that is exhibiting this consistently, but it could well be something local: |
FWIW, I followed @indirect's suggestion of re-fetching the gems (json and minitest) and tossed them into vendor/cache; and (unsurprisingly) it worked. I have the gems installed globally as well, but am using rvm for my www-data user (Ubuntu). Thanks for working on this. [[ruby 2.1.1, bundle 1.5.3, json 1.8.1, minitest 4.7.5, ubuntu 13.10]] |
This is a bug, copying gems is not a solution. |
I never said it was a solution. I said it was something you could do. If a fix is important to you, feel free to fix it instead of waiting for me to have enough free time to take care of it. On Fri, Apr 11, 2014 at 10:42 AM, Barry Allard [email protected]
|
Defensiveness isn't constructive. Could just say "Busy atm, patches welcome." |
lol. That wasn’t me trying to be defensive, that was me trying to subtly point out that you were being demanding and rude. Since you want to make a big deal out of it: You're not entitled to anything here, and your comment wasn’t constructive or helpful. Also, I’m too busy at this exact moment, but patches are welcome. :) On Apr 11, 2014, at 11:37 AM, Barry Allard [email protected] wrote:
|
I'm getting this error too. Windows 8, bundler 1.5.3, ruby 2.0.0p481. |
Upgrade to the latest Bundler version. On Sat, Jul 12, 2014 at 4:21 PM, Jan Škrášek [email protected]
|
I get this error in OSX 10.10, bundler 1.7.5, ruby 1.9.3p392 |
@mkarlovich this issue is closed. If you're still having problems, start wit the troubleshooting steps at https://github.com/bundler/bundler/blob/master/ISSUES.md and if those don't solve it, please follow the instructions in that document for creating a new issue. |
What fixed it for you? |
When
bundle
, I met errors below, but after I installs manuallygem install minitest -v '4.7.5'
, I can install bundled gems completely. Is this bundler problem?my environment:
The text was updated successfully, but these errors were encountered: