本文介绍了更新红宝石1.8.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hiii
我正在尝试更新我的宝石文件。当前版本的gem是1.8.5
当我尝试使用命令gem install ruby​​gems-update -v 1.8.5更新它时,它给出以下错误
**

**



我正在使用ubuntu 10.04

我也尝试使用命令gem update --system
它给出的错误如下
更新rubygems-update
**
$ b



**
i也尝试了链接

请帮我解决问题。

解决方案

如果您在Windows 7下,请以管理员身份运行命令提示符。 / p>

阅读此。在此之后,在您下载gem的目录中,尝试使用以下命令在本地安装它: gem install gem_name --local


hiii i am trying to update my gem file. Current version of gem is 1.8.5When i am trying to update it using command " gem install rubygems-update -v 1.8.5 " it is giving following error**

**

I am working on ubuntu 10.04

also i tried to update using command " gem update --system "it is giving the error as belowUpdating rubygems-update**

**i also tried the solution given on the link http://lightyearsoftware.com/2009/07/updating-rubygems-to-recent-1-3-x/

please help me to resolve the problem..

解决方案

If you are under Windows 7, run the command prompt as Administrator.

Read this thread. The error reported is the same of yours.

Try to apply the Google DNS configuration to your connection.

Otherwise you can try to install locally the gem, downloading it on rubygems.org. After this, in the directory you downloaded the gem, try to install it locally with the command: gem install gem_name --local

这篇关于更新红宝石1.8.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 05:53