Ruby 在本地计算机上获取Jekyll主题服务时遇到问题(找不到可寻址…)

Ruby 在本地计算机上获取Jekyll主题服务时遇到问题(找不到可寻址…),ruby,rubygems,jekyll,Ruby,Rubygems,Jekyll,我已经和杰基尔玩了几天了,但是在我的本地机器上尝试让主题正常工作却没什么好运气 我已经尝试了几个不同的主题,并得到错误,似乎是指向丢失的文件???我不完全确定,因为我对Ruby完全陌生 我安装了什么 ruby 2.3.3p222(2016-11-21修订版56859)[x64-mingw32] 杰基尔3.4.3 我在运行什么命令 错误和跟踪 C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/spec_set.r

我已经和杰基尔玩了几天了,但是在我的本地机器上尝试让主题正常工作却没什么好运气

我已经尝试了几个不同的主题,并得到错误,似乎是指向丢失的文件???我不完全确定,因为我对Ruby完全陌生

我安装了什么
  • ruby 2.3.3p222(2016-11-21修订版56859)[x64-mingw32]
  • 杰基尔3.4.3
我在运行什么命令 错误和跟踪 C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/spec_set.rb:87:“物化中的块”:在任何源中都找不到可寻址-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!'
来自C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/spec_set.rb:80:in“物化”
来自C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/definition.rb:176:in'specs'
来自C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/definition.rb:235:in'specs_for'
来自C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/definition.rb:224:in“请求的规格”
来自C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:118:“定义中的块\方法”中
来自C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:19:in'setup'
来自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\u manager.rb:36:in'require\u from\u bundler'
来自C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/jekyll-3.4.3/exe/jekyll:9:in`'
从C:/Ruby23-x64/bin/jekyll:22:in'load'
来自C:/Ruby23-x64/bin/jekyll:22:in`'
尝试 我已尝试发出以下命令:
~$bundle exec jekyll service
导致相同的错误和跟踪


非常感谢您的任何见解。

您没有安装可寻址的
gem。
再次运行
gem install jekyll
,确保安装了所有必需的依赖项


或者,如果您有一个
gem文件
,请运行
bundle安装

,因为您没有安装
可寻址的
gem。
再次运行
gem install jekyll
,确保安装了所有必需的依赖项


或者,如果您有一个
Gemfile
,请运行
bundle安装

我可以在每个主题项目目录中看到
Gemfile
。当我读取文件时,它看起来像一组安装说明?我的方向对吗?谢谢你给我指明了正确的方向。发出
bundle install
命令后,现在安装了6个
Gemfile
依赖项和22个gem。运行
jekyll-serve
后,系统仍然抱怨可寻址版本与
Gemfile
中的版本不匹配,这是不是有什么问题?最后,错误建议使用
bundle exec-jekyll-serve
,它工作得很好。
Gemfile
是应用程序所需的Ruby宝石列表(本例中为主题)将
bundle exec
预先添加到您的jekyll命令将告诉它只使用列出的那些版本,而不要与系统中可能安装的其他版本混淆。现在您已经解释了这一点,我再看一下
GemFile
,这很有意义。谢谢。我在每个主题项目目录中都看到了
Gemfile
。当我读取文件时,它看起来像一组安装说明?我的方向对吗?谢谢你给我指明了正确的方向。发出
bundle install
命令后,现在安装了6个
Gemfile
依赖项和22个gem。运行
jekyll-serve
后,系统仍然抱怨可寻址版本与
Gemfile
中的版本不匹配,这是不是有什么问题?最后,错误建议使用
bundle exec-jekyll-serve
,它工作得很好。
Gemfile
是应用程序所需的Ruby宝石列表(本例中为主题)将
bundle exec
预先添加到您的jekyll命令将告诉它只使用列出的那些版本,而不要与系统中可能安装的其他版本混淆。现在您已经解释了这一点,我再看一下
GemFile
,这很有意义。谢谢
~ $ cd ~/jekyll-theme/
~ $ jekyll serve
    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>'