2010-02-21 72 views
2

尝试安装'less'gem。 I型sudo gem install less截至http://lesscss.org/指示,我得到以下错误:RubyGems - 我的系统似乎无法找到任何远程安装的宝石

ERROR: While executing gem ... (Gem::GemNotFoundException) 
    Could not find less (> 0) in any repository 

好了,所以我的数字也许我只需要更新的RubyGems。尝试'宝石更新 - 系统'让我

Updating RubyGems... 
Attempting remote update of rubygems-update 
ERROR: While executing gem ... (Gem::InstallError) 
    rubygems-update requires builder >= 0 

Arrgh。好吧,那么让我们尝试“sudo的创业板安装建筑工地:

ERROR: While executing gem ... (Gem::GemNotFoundException) 
    Could not find builder (> 0) in any repository 

看来,无论我尝试安装什么宝石,它不能被任何库中找到。我检查了我的环境,并列出了rubyforge:

RubyGems Environment: 
    - VERSION: 0.9.4 (0.9.4) 
    - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8 
    - GEM PATH: 
    - /usr/local/lib/ruby/gems/1.8 
    - REMOTE SOURCES: 
    - http://gems.rubyforge.org 

任何想法发生了什么?我在OSX 10.4上,在此之前我安装了Ruby 1.8.6。

回答

0

捆绑在osx中​​的rubygems版本使用gemforge作为其宝石的官方来源 - 这已被替换为gemcutter。你应该能够做到

sudo gem update --system 

要升级到更新最新版本的红宝石的宝石,然后将使用gemcutter作为源链接

0

这是一个非常老版本的RubyGems的!你是如何安装的?

是手动安装吗?如果是这样,也许你可以用同样的方法尝试manual upgrade

-1

执行以下操作:

sudo gem update --system 

更新您安装的RubyGems的。然后,将Github gem存储库添加到您的源代码中。我建议github上,因为你会发现很多有用的东西有:

sudo gem sources -a http://gems.github.com 
+1

github已经表示,他们的宝石托管将在今年年底结束,所以我不会永远相信。目前gemcutter.org/rubygems.org是宝石的官方回购。 – 2010-07-16 15:03:10

1

认为 RubyGems的1.3.x的需要Ruby 1.8.7,所以你可能会安装,第一。然后将rubygems更新为1.3.7。通过gem update --system