在windows上设置jekyll

时间:2016-08-08 02:56:09

标签: ruby windows jekyll

我尝试在window10(x64)上设置jekyll

Ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [x64-mingw32]
gem -v
2.6.6


D:\myblog>jekyll serve
Configuration file: D:/myblog/_config.yml
            Source: D:/myblog
       Destination: D:/myblog/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
Error reading file C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/minima-1.0.1/_layouts/default.html: No such file or directory @ rb_sysopen - /Ruby22-x64/lib/ruby/gems/2.2.0/gems/minima-1.0.1/_layouts/default.html
Error reading file C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/minima-1.0.1/_layouts/page.html: No such file or directory @ rb_sysopen - /Ruby22-x64/lib/ruby/gems/2.2.0/gems/minima-1.0.1/_layouts/page.html
Error reading file C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/minima-1.0.1/_layouts/post.html: No such file or directory @ rb_sysopen - /Ruby22-x64/lib/ruby/gems/2.2.0/gems/minima-1.0.1/_layouts/post.html

有人可以帮我解决吗?

2 个答案:

答案 0 :(得分:0)

我遇到了同样的问题。遵循命令行中显示的路径(对我而言):

C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/minima-1.0.1/_layouts/default.html

并手动复制_layouts_includes_sass文件夹为我做了一件事。虽然这不是一个永久的解决方案,因为似乎有一些错误阻止了jekyll从错误中显示的目录中复制文件。 希望这对你现在也有帮助。

答案 1 :(得分:0)

问题是由于项目目录 Ruby安装,位于不同的驱动器上(即 D: C :

要修复此问题,您只需从位置C:/Ruby22-x64创建一个指向D:/Ruby22-x64的(联结)链接。

您需要输入的命令:

D:
cd /
mklink /J "Ruby22-x64" "C:/Ruby22-x64"