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