当我尝试更新 rubygems(通过运行“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.
知道可能出了什么问题以及如何解决它吗?
最佳答案
有两种方法:摆脱 debian ruby 包并从源代码安装 ruby,或者您可以按照给您的说明进行操作:
RubyGems can be updated using the official Debian repositories by aptitude or apt-get.
debian 的 rubygems 是由 apt 管理的,所以你需要用它来更新它。如果你不想,你需要自己安装 ruby,而不是使用 apt。或者至少你需要自己安装 ruby-gems。试试这个:
[sudo] apt-get remove rubygems wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz tar xzf rubygems-1.3.7.tgz cd rubygems-1.3.7 [sudo] ruby setup.rb
关于ruby-on-rails - "gem update --system is disabled on Debian"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3643870/