我如何在Ubuntu 10.04服务器上安装Jekyll? [英] How can I install Jekyll on Ubuntu 10.04 Server?

查看:89
本文介绍了我如何在Ubuntu 10.04服务器上安装Jekyll?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装Jekyll的权威指南似乎是 http://wiki.github.com/ mojombo / jekyll / install 它说:

  gem install jekyll 



我得到一个

 错误:可能不管我是否以超级用户身份运行该命令,都不会在本地或存储库中找到gem jekyll 



gem env 返回以下内容:

  RubyGems环境:
- RUBYGEMS VERSION:1.2.0
- RUBY VERSION:1.8.7(2008-08-11 patchlevel 72)[i486-linux]
- 安装目录:/ var / lib / gems / 1.8
- RUBY EXECUTABLE:/usr/bin/ruby1.8
- 可执行目录:/var/lib/gems/1.8/bin
- RUBYGEMS平台:
- ruby​​
- x86-linux
- 创业板路径:
- /var/lib/gems/1.8
- 创业板配置:
- :update_s资源=> true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- :sources => [http://gems.github.com/,http://gems.rubyforge.org/]
- 远程来源:
- http://gems.github.com/
- http://gems.rubyforge.org/

我也试过指定github作为来源没有运气。还有什么我应该尝试的?

解决方案

您使用的是过时的RubyGems版本。

首先,更新来源:

  $ gem来源--clear-all 
$宝石来源--add http://rubygems.org
$宝石来源--add http://gems.github.com

然后尝试安装它。



您还应该以超级用户身份登录并更新RubyGems版本。
当前版本是1.3.7。


The definitive guide to installing Jekyll seems to be http://wiki.github.com/mojombo/jekyll/install where it says:

gem install jekyll

I am getting an

ERROR:  could not find gem jekyll locally or in a repository

regardless of whether I run that command as superuser or not.
gem env Returns the following:

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/

I have also tried specifying github as the source with no luck. What else should I be trying?

解决方案

You are using a very outdated version of RubyGems.

First, update the sources:

$ gem sources --clear-all
$ gem sources --add http://rubygems.org
$ gem sources --add http://gems.github.com

Then try to install it.

You should also login as a superuser and update the RubyGems version. The current release is 1.3.7.

这篇关于我如何在Ubuntu 10.04服务器上安装Jekyll?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆