Can't update RubyGems

前端 未结 8 2610
臣服心动
臣服心动 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:48

    Similar problem, different solution

    $ sudo gem install rubygems-update update_rubygems
    Updating metadata for 1 gems from gems.rubyforge.org/
    .
    complete
    ERROR:  Error installing rubygems-update:
            rubygems-update requires builder (>= 0)
    ERROR:  could not find update_rubygems locally or in a repository
    

    and

    $ sudo gem update --system
    ERROR:  While executing gem ... (RuntimeError)
        gem update --system is disabled on Debian. RubyGems can be updated using the official Debian repositories by aptitude or apt-get.                      
    

    My solution: Go to http://docs.rubygems.org/read/chapter/3#page13

    and install manually, i.e. get the rubygems.... tgz and install it.

    Hope it helps someone.

提交回复
热议问题