【问题标题】:Trouble Installing Jekyll on Windows 7在 Windows 7 上安装 Jekyll 时遇到问题
【发布时间】:2017-01-15 17:19:00
【问题描述】:

我正在尝试在我的 Windows 7 桌面上安装 Jekyll,但我在 cmd 中不断收到此错误。有谁知道是什么原因造成的?

谢谢!

C:\Users\Mac\Documents\Github\mackiser.github.io>jekyll build
WARN: Unresolved specs during Gem::Specification.reset:
  rouge (~> 1.7)
  ffi (>= 0.5.0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/bundler-         1.12.5/lib/bundler/spec_set.rb:
95:in `block in materialize': Could not find listen-3.0.6 in any of the sources
(Bundler::GemNotFound)
    from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler
/spec_set.rb:88:in `map!'
    from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler
/spec_set.rb:88:in `materialize'
    from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler
/definition.rb:140:in `specs'
    from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler
/definition.rb:185:in `specs_for'
    from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler
/definition.rb:174:in `requested_specs'
    from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler
/environment.rb:19:in `requested_specs'
    from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler
/runtime.rb:14:in `setup'
    from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler
.rb:95:in `setup'
    from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/jekyll-3.2.1/lib/jekyll/pl
ugin_manager.rb:36:in `require_from_bundler'
    from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/jekyll-3.2.1/exe/jekyll:9:
in `<top (required)>'
    from C:/tools/ruby23/bin/jekyll:23:in `load'
    from C:/tools/ruby23/bin/jekyll:23:in `<main>'

【问题讨论】:

标签: ruby jekyll windows-7-x64 github-pages


【解决方案1】:

从 Jekyll 3 开始,建议运行 Jekyll 的方法是通过 Bundler (http://bundler.io/)。这解决了许多与 Gem 相关的头痛和版本控制问题。不要使用jekyll build 运行,而是尝试来自http://jekyllrb.com/ 的以下命令:

安装您的依赖项(仅在最初或添加插件后需要):

bundle install

使用这些依赖项运行 jekyll:

bundle exec jekyll serve

我不确定这是否能解决您的问题,但这是一个好的开始。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-04-19
    • 1970-01-01
    相关资源
    最近更新 更多