本文介绍了宝石安装错误,找不到索引,在rails上ruby的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:无法安装任何类型的宝石。但我想安装谜语,如果这很重要。



当我运行 sudo gem installgem_name以下错误:

 警告:未找到RubyGems 1.2+索引:

RubyGems将恢复为传统索引降级性能。
批量更新Gem源码索引:http://gems.rubyforge.org/

该怎么办?

解决方案

1)这里是答案!
- 慢速连接

2)解决方案
- 移动到新的连接。



-
这可能不会影响第一世界的人,但我住在中国,这是一个很大的问题,因为很少有人看到这一点。


基本上这个错误意味着连接速度会放慢,并放弃说没有找到索引。但是除此之外,没有任何文件或帮助,除了一些关于改变宝石来源的文章,以及MERB导致的问题,但所有这些对我来说都是失败的。


Problem: Cannot install any gem, any type. But I want to install riddle if that matters.

When I run sudo gem install "gem_name" I get the following error:

WARNING:  RubyGems 1.2+ index not found for:

RubyGems will revert to legacy indexes degrading performance.
Bulk updating Gem source index for: http://gems.rubyforge.org/

What to do??

解决方案

1) Here is the answer!!!!- slow connection

2) Solution- move to a new connection.

-This might not affect people in the 1st world, but I live in China and this was a huge problem as few people seem to have experienced this.

Basically the error means that the connection is to slow and gives up saying no index found. But there is not documentation or help out there on this, except for a few posts about changing gem sources, and MERB causing problems, but all that failed for me.

这篇关于宝石安装错误,找不到索引,在rails上ruby的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 22:49