【发布时间】:2016-08-08 02:56:09
【问题描述】:
我尝试在 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
有人可以帮我解决吗?
【问题讨论】:
-
您有两个不同的磁盘驱动器吗?我注意到您的博客位于 D 驱动器上,而 jekyll 命令正在您的 C 驱动器上查找 Ruby。我想确保您实际上使用的是不同的驱动器。您是否能够为 ruby、gem 和 jekyll 运行 Windows 的
which等效项以显示这些脚本的运行位置?我想知道其中一个命令是否引用了不同的 Ruby 安装。