尝试安装'less' gem。我sudo gem install less
按照http://lesscss.org/的说明输入,我收到以下错误:
ERROR: While executing gem ... (Gem::GemNotFoundException)
Could not find less (> 0) in any repository
好吧,所以我想也许我只需要更新 RubyGems。尝试 'gem update --system' 让我
Updating RubyGems...
Attempting remote update of rubygems-update
ERROR: While executing gem ... (Gem::InstallError)
rubygems-update requires builder >= 0
啊。好吧,那么让我们试试 'sudo gem install builder':
ERROR: While executing gem ... (Gem::GemNotFoundException)
Could not find builder (> 0) in any repository
似乎无论我尝试安装什么 gem,它都无法在任何存储库中找到。我检查了我的环境,并列出了 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。