“在Debian上禁用了gem update --system”错误 [英] "gem update --system is disabled on Debian" error

查看:190
本文介绍了“在Debian上禁用了gem update --system”错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  ERROR当我尝试更新rubygems(通过运行'gem update --system')时,出现此错误: :在执行gem时(RuntimeError)
在Debian上禁用了gem update --system。 RubyGems可以通过aptitude或apt-get使用官方的Debian版本库进行更新。

任何想法可能会出错,我该如何解决它?

解决方案

有两种方法:摆脱debian ruby​​包并从源代码安装ruby,或者您可以按照提供给您的说明操作:


RubyGems可以通过aptitude或apt-get使用官方Debian版本库进行更新。

Debian的rubygems是由apt管理的,所以你需要用它来更新它。如果你不想,你需要自己安装ruby,而不使用apt。或者至少你需要自己安装ruby-gems。试试这个:

$ $ $ $ b $ sudo apt-get remove ruby​​gems
wget http://production.cf.rubygems.org/ rubygems / ruby​​gems-1.3.7.tgz
tar xzf ruby​​gems-1.3.7.tgz
cd ruby​​gems-1.3.7
[sudo] ruby​​ setup.rb


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

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.

Any idea what might be wrong and how I can fix it?

解决方案

There are two ways: get rid of the debian ruby package and install ruby from source, or you can follow the instrucions given to you:

RubyGems can be updated using the official Debian repositories by aptitude or apt-get.

the rubygems with debian is managed by apt, and so you need to update it with it. If you don't want to, you need to install ruby on you own, without using apt. Or at least you need to install ruby-gems on you own. Try this:

[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

这篇关于“在Debian上禁用了gem update --system”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆