Bundler throws uninitialized constant Gem::SilentUI (NameError) error after upgrading to Rubygems 1.5.0

后端 未结 7 646
悲&欢浪女
悲&欢浪女 2021-02-01 12:41

I ran gem update --system to update to Rubygems 1.5.0 and after every time I run any bundle commands I get:

rvm/gems/ruby-1.8.7-p249/gems

相关标签:
7条回答
  • 2021-02-01 13:01

    If you're a bit vague on what bundler actually is and don't want to learn then the very short answer to the question is:

    gem install bundler
    
    0 讨论(0)
  • 2021-02-01 13:01

    Re: "just Update to bundler 1.0.10." — Note that you can't necessarily get the new version simply by doing

    sudo gem update
    

    You'll need to fully uninstall your current bundler, ignore the warnings about the dependencies it breaks, and then re-install it. That fixed my Bundler 1.0.7 and got my system working again.

    0 讨论(0)
  • 2021-02-01 13:04

    Note that if you're using rvm, you may not be able to upgrade bundler yourself. You may need to upgrade rvm in order to update bundler, since rvm integrates bundler pretty tightly. I got this error, tried to upgrade bundler, couldn't, and upgrading rvm fixed my problem.

    0 讨论(0)
  • 2021-02-01 13:11

    Update to bundler 1.0.10 or above (gem update bundler). The issue is fixed in later versions.

    0 讨论(0)
  • 2021-02-01 13:16

    You can also downgrade Rubygems, however this is less than ideal, but for legacy systems if you need a specific bundler version you will have to do this.

    For example on the app I am working on at the moment we are using:

    Ruby 1.8.6-p383 RubyGems 1.3.6 Bundler 0.9.26

    0 讨论(0)
  • 2021-02-01 13:18

    It looks like RubyGems 1.5.0, which just came out today, is incompatible with Bundler 1.0.9.

    You'll probably want to downgrade back to RubyGems 1.4 until an update is released for Bundler (which will likely be very, very soon).

    Update: Bundler 1.0.10 is out now.

    0 讨论(0)
提交回复
热议问题