安装Jekyll的权威指南似乎是
http://wiki.github.com/mojombo/jekyll/install,它说:
gem install jekyll
我得到了一个
ERROR: could not find gem jekyll locally or in a repository
无论我是否以超级用户身份运行该命令.
gem env返回以下内容:
RubyGems Environment:
- RUBYGEMS VERSION: 1.2.0
- RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
- INSTALLATION DIRECTORY: /var/lib/gems/1.8
- RUBY EXECUTABLE: /usr/bin/ruby1.8
- EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
- /var/lib/gems/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://gems.github.com/", "http://gems.rubyforge.org/"]
- REMOTE SOURCES:
- http://gems.github.com/
- http://gems.rubyforge.org/
我也试过将github指定为没有运气的来源.我还应该尝试什么?
最佳答案 您正在使用一个非常过时的RubyGems版本.
首先,更新来源:
$gem sources --clear-all
$gem sources --add http://rubygems.org
$gem sources --add http://gems.github.com
然后尝试安装它.
您还应该以超级用户身份登录并更新RubyGems版本.
目前的版本是1.3.7.