无法让Jekyll Themes在本地机器上服务(找不到可寻址......)

时间:2017-04-26 17:13:24

标签: ruby rubygems jekyll

现在和Jekyll玩了几天,但是没有任何幸运的尝试让主题在我的本地机器上工作。

我尝试了几个不同的主题,并且得到的错误似乎指向丢失的文件???我不完全确定,因为我对Ruby完全不熟悉。

我已经安装了什么

  • ruby​​ 2.3.3p222(2016-11-21修订版56859)[x64-mingw32]
  • jekyll 3.4.3

我正在运行什么命令

~ $ cd ~/jekyll-theme/
~ $ jekyll serve

错误和跟踪

  

C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/spec_set.rb:87:在`block in materialize'中:找不到可寻址的 - 2.4.0在任何来源(Bundler :: GemNotFound)

    from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/spec_set.rb:80:in `map!'
    from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/spec_set.rb:80:in `materialize'
    from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/definition.rb:176:in `specs'
    from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/definition.rb:235:in `specs_for'
    from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/definition.rb:224:in `requested_specs'
    from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:118:in `block in definition_method'
    from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:19:in `setup'
    from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler.rb:100:in `setup'
    from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/jekyll-3.4.3/lib/jekyll/plugin_manager.rb:36:in `require_from_bundler'
    from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/jekyll-3.4.3/exe/jekyll:9:in `<top (required)>'
    from C:/Ruby23-x64/bin/jekyll:22:in `load'
    from C:/Ruby23-x64/bin/jekyll:22:in `<main>'

Attemps

我尝试发出以下命令:
~ $ bundle exec jekyll serve 导致相同的错误和痕迹

非常感谢任何见解。

1 个答案:

答案 0 :(得分:3)

您没有安装addressable gem。 再次运行gem install jekyll以确保安装所有必需的依赖项。

如果您有Gemfile,请运行bundle install