Ruby 使用Jekyll多语言插件运行Jekyll时出错

Ruby 使用Jekyll多语言插件运行Jekyll时出错,ruby,gem,jekyll,jekyll-extensions,Ruby,Gem,Jekyll,Jekyll Extensions,我正在尝试使用Jekyll multiple languages plugin在Windows上运行Jekyll server,但不断收到以下错误消息: C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- jekyll-multiple-languages-plugin (LoadError) from C:/Ruby200/

我正在尝试使用Jekyll multiple languages plugin在Windows上运行Jekyll server,但不断收到以下错误消息:

C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- jekyll-multiple-languages-plugin (LoadError)
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-2.0.3/lib/jekyll/plugin_manager.rb:28:in `block in require_gems'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-2.0.3/lib/jekyll/plugin_manager.rb:26:in `each'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-2.0.3/lib/jekyll/plugin_manager.rb:26:in `require_gems'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-2.0.3/lib/jekyll/plugin_manager.rb:19:in `conscientious_require'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-2.0.3/lib/jekyll/site.rb:71:in `setup'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-2.0.3/lib/jekyll/site.rb:33:in `initialize'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-2.0.3/lib/jekyll/commands/build.rb:26:in `new'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-2.0.3/lib/jekyll/commands/build.rb:26:in `process'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-2.0.3/lib/jekyll/commands/serve.rb:23:in `block (2 levels) in init_with_program'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/mercenary-0.3.3/lib/mercenary/command.rb:220:in `call'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/mercenary-0.3.3/lib/mercenary/command.rb:220:in `block in execute'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/mercenary-0.3.3/lib/mercenary/command.rb:220:in `each'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/mercenary-0.3.3/lib/mercenary/command.rb:220:in `execute'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/mercenary-0.3.3/lib/mercenary/program.rb:35:in `go'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/mercenary-0.3.3/lib/mercenary.rb:22:in `program'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-2.0.3/bin/jekyll:18:in `'
        from C:/Ruby200/bin/jekyll:23:in `load'
        from C:/Ruby200/bin/jekyll:23:in `'
我已将以下内容添加到
\u config.yml

gems:
-jekyll多语言插件

以下是我的gem文件列表:

*** LOCAL GEMS ***

activesupport (4.1.1)
bigdecimal (1.2.0)
blankslate (2.1.2.4)
celluloid (0.15.2)
classifier (1.3.4)
coffee-script (2.2.0)
coffee-script-source (1.7.0)
colorator (0.1)
commander (4.1.6)
execjs (2.0.2)
fast-stemmer (1.0.2)
ffi (1.9.3 x86-mingw32)
highline (1.6.21)
i18n (0.6.9)
io-console (0.4.2)
jekyll (2.0.3)
jekyll-coffeescript (1.0.0)
jekyll-i18n (1.0.2)
jekyll-multiple-languages-plugin (1.2.5)
jekyll-sass-converter (1.0.0)
json (1.7.7)
kramdown (1.3.3)
liquid (2.5.5)
listen (2.7.5, 1.3.1)
maruku (0.6.1)
mercenary (0.3.3)
minitest (5.3.4, 4.3.2)
parslet (1.5.0)
posix-spawn (0.3.8)
psych (2.0.0)
pygments.rb (0.5.4)
rake (0.9.6)
rb-fsevent (0.9.4)
rb-inotify (0.9.4)
rb-kqueue (0.2.2)
rdoc (4.0.0)
redcarpet (3.1.2, 2.3.0)
safe_yaml (1.0.3, 0.9.7)
sass (3.3.7)
syntax (1.2.0)
test-unit (2.0.0.0)
thread_safe (0.3.3)
timers (1.1.0)
toml (0.1.1)
tzinfo (1.1.0)
yajl-ruby (1.1.0 x86-mingw32)
我试过运行不同版本的Jekyll,但没有成功


非常感谢您的帮助。

在此处使用
Gemfile
似乎会让您受益匪浅。它看起来是这样的:

source "https://rubygems.org"
gem "jekyll", "~> 2.0"
gem "jekyll-multiple-languages-plugin"

将其放在Jekyll站点的根目录中(您将在其中运行
Jekyll build
)。运行
bundle安装
,然后运行Jekyll:
bundle-exec-Jekyll-build
。有关
Gemfile
Gemfile.lock
的更多信息,请查看。

此插件是否也需要
jekyll-i18n
?你能将它添加到你的_config.yml中的
gems
中并重试吗?当我将
jekyll-i18n
添加到_config.yml中时,我会收到一条错误消息说
无法激活jekyll-i18n-1.0.2,因为jekyll-2.0.3与jekyll(~>1.3.1)
。无论如何,我很感谢您的帮助:)但是为了让您正确,上面的
gem列表是在您删除其他Jekyll版本后制作的?因为它没有提到它们。是的,一旦我安装了
jekyll-i18n
就安装了早期版本的jekyll。我删除了它并重试,但出现了相同的错误消息,好像我没有删除它一样。