Can't update RubyGems

前端 未结 8 2445
臣服心动
臣服心动 2021-02-19 23:40

I\'m having difficulties updating RubyGems from version 1.1.1 to newest. I\'ve tried the following:

gem update

Result:

8条回答
  •  别那么骄傲
    2021-02-19 23:55

    There is no need to take such drastic steps as completely rebuilding Ruby, reinstalling Rubygems from scratch or installing a version manager to solve this problem. There is simply a dependency cycle introduced by the release of hoe 2.3.0:

    rubygems-update 1.3.5 requires (among other things) hoe-seattlerb
    hoe-seattlerb requires hoe >= 2.3.0
    hoe >= 2.3.0 requires rubygems >= 1.3.1

    I wrote the blog post linked to by zipizap. To recap:

    1. If you've already tried to update, uninstall the latest rubygems-update first: sudo gem uninstall rubygems-update -v 1.3.5
    2. Update to 1.3.0: sudo gem install rubygems-update -v 1.3.0
    3. sudo update_rubygems
    4. Then update to latest: sudo gem update --system

    With the release of Rubygems 1.3.6, it looks like this problem may be gone. From the release notes:

    • Development deps are no longer added to rubygems-update gem so older versions can update sucessfully.

提交回复
热议问题