【问题标题】:installation of jekyll failed - Windowsjekyll 安装失败 - Windows
【发布时间】:2015-01-09 18:50:13
【问题描述】:

我正在尝试在 32 位 windows 7 PC 上安装 jekyll。我下载了 ruby​​ 安装程序 - 32 位和 32 位 devkit 并提取了 un ruby​​ 安装文件夹。我遇到了一些 ssh 错误,我通过暂时切换到 http 而不是 https 解决了这个错误,然后更新了 gems 以及使用安装的 bundler

 gem install bundler

但是 gem install jekyll 给出以下错误

Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing jekyll:
ERROR: Failed to build gem native extension.

C:/Ruby21/bin/ruby.exe -r ./siteconf20150109-5804-1k3wbva.rb extconf.rb
No such file or directory - C:/Ruby21/bin/ruby.exe -r ./siteconf20150109-5804-1k
3wbva.rb extconf.rb 2>&1

Gem files will remain installed in C:/Ruby21/lib/ruby/gems/2.1.0/gems/fast-stemm
er-1.0.2 for inspection.
Results logged to C:/Ruby21/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/fas
t-stemmer-1.0.2/gem_make.out

【问题讨论】:

  • 嗯,32 位机器。是时候尝试一下像 Ubuntu 这样的 Linux 发行版了!这肯定会为您节省大量时间

标签: ruby gem jekyll


【解决方案1】:

您需要安装 Ruby DevKit 来修复您看到的错误。任何理智的 Ruby 安装都能够即时构建东西。

我将从 Julian Thilo 关于在 Windows 上安装 Jekyll 的精彩说明开始:

Run Jekyll on Windows

如果您安装 Ruby 只是为了运行 Jekyll,PortableJekyll 将在

杰基林快乐...

【讨论】:

  • 我已经安装了 devkit。但是 gem install Jekyll 失败了……但是便携式 Jekyll 似乎是个不错的选择……
  • 我是一名 Java 和 perl 开发人员.. 并且涉足前端 / python 所以是的,对 ruby​​ 不太感兴趣
  • Re devkit -- 我不得不完全按照 Thilo 的指示进行操作,但最终还是成功了。您需要 Windows 的特定版本。
【解决方案2】:

我在 3 个系统上尝试了同样的事情,发现安装 ruby​​ gems 解决了这个问题。所以对于任何回到这个问题的人来说,这就是你在 windows pc 上安装 jekyll 的方式:

1.下载并安装ruby。

2.download devkit 解压到一个文件夹中(最好在 ruby​​ 安装目录中)并在你的 devkit 目录中输入 cmd 窗口:

 ruby dk.rb init
 ruby dk.rb install

3.通过

下载并安装gem
 ruby setup.rb

4。最后:

 gem install bundler 
 gem install jekyll

*bundler 是一个 jekyll 依赖

【讨论】:

    【解决方案3】:

    在使用 Windows 安装程序安装 Ruby+Devkit 2.5.X (x64) 后,我在 Windows 10 上遇到了同样的问题。

    原因是我更改了安装程序中的默认路径,并且路径名中有空格。显然有些 make 脚本不喜欢那样。

    重新安装到没有任何空格的路径解决了这个问题。

    另见this related issue on github

    【讨论】:

      【解决方案4】:

      当 ruby​​ 安装在“c:\program files\Ruby26-x64”中时,我无法安装“gem install jekyll bundler”。在我在 c:\Ruby26-x64 上重新安装 ruby​​ 后,一切正常。似乎安装无法解析空白路径

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-12-03
        • 2011-06-15
        • 2019-05-20
        • 2015-10-06
        • 2010-12-26
        • 2013-02-21
        相关资源
        最近更新 更多