“gem update --system is disabled on Debian” error

前端 未结 3 977
孤独总比滥情好
孤独总比滥情好 2021-02-06 02:11

When I try to update rubygems (by running \'gem update --system\') I get this error:

ERROR:  While executing gem ... (RuntimeError)
gem update --system is disabl         


        
3条回答
  •  北荒
    北荒 (楼主)
    2021-02-06 02:27

    in debian wheezy

    • remove rubygems

      apt-get remove rubygems

    • get a source

      wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.7.tgz

    • uncompress source

      tar zxvf rubygems-1.8.7.tgz

    • move directory

      cd rubygems-1.8.7

    • run setup.rb with ruby

      ruby setup.rb

    • update system

      gem update --system

    then it'll installing newest versionand

提交回复
热议问题