如何在 Ubuntu 10.04 服务器上安装 Jekyll?

发布于 2024-09-13 12:12:03 字数 1095 浏览 8 评论 0原文

安装 Jekyll 的权威指南似乎是 https://github.com/jekyll/jekyll ,其中说:

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 作为源,但没有成功。我还应该尝试什么?

The definitive guide to installing Jekyll seems to be https://github.com/jekyll/jekyll 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风蛊 2024-09-20 12:12:03

您正在使用非常过时的 RubyGems 版本。

首先,更新源:

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

然后尝试安装它。

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

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文