jekyll建立在debian 8上,找不到gem

时间:2015-11-10 01:06:41

标签: ruby gem debian jekyll

我尝试使用jekyll在vps上构建我的网站,然后我收到了followind错误:

    jekyll build
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:126:in `require': cannot load such file -- jekyll-paginate (LoadError)
        from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:126:in `require'
        from /var/lib/gems/2.1.0/gems/jekyll-3.0.0/lib/jekyll/plugin_manager.rb:30:in `block in require_gems'
        from /var/lib/gems/2.1.0/gems/jekyll-3.0.0/lib/jekyll/plugin_manager.rb:27:in `each'
        from /var/lib/gems/2.1.0/gems/jekyll-3.0.0/lib/jekyll/plugin_manager.rb:27:in `require_gems'
        from /var/lib/gems/2.1.0/gems/jekyll-3.0.0/lib/jekyll/plugin_manager.rb:19:in `conscientious_require'
        from /var/lib/gems/2.1.0/gems/jekyll-3.0.0/lib/jekyll/site.rb:97:in `setup'
        from /var/lib/gems/2.1.0/gems/jekyll-3.0.0/lib/jekyll/site.rb:49:in `initialize'
        from /var/lib/gems/2.1.0/gems/jekyll-3.0.0/lib/jekyll/commands/build.rb:30:in `new'
        from /var/lib/gems/2.1.0/gems/jekyll-3.0.0/lib/jekyll/commands/build.rb:30:in `process'
        from /var/lib/gems/2.1.0/gems/jekyll-3.0.0/lib/jekyll/commands/build.rb:18:in `block (2 levels) in init_with_program'
        from /var/lib/gems/2.1.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `call'
        from /var/lib/gems/2.1.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `block in execute'
        from /var/lib/gems/2.1.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `each'
        from /var/lib/gems/2.1.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `execute'
        from /var/lib/gems/2.1.0/gems/mercenary-0.3.5/lib/mercenary/program.rb:42:in `go'
        from /var/lib/gems/2.1.0/gems/mercenary-0.3.5/lib/mercenary.rb:19:in `program'
        from /var/lib/gems/2.1.0/gems/jekyll-3.0.0/bin/jekyll:17:in `<top (required)>'
        from /usr/local/bin/jekyll:23:in `load'
        from /usr/local/bin/jekyll:23:in `<main>'

我发现问题是不同的位置哦jekyll和宝石包

whereis jekyll
jekyll: /usr/local/bin/jekyll
whereis gem
gem: /usr/bin/gem2.1 /usr/bin/gem /usr/share/man/man1/gem.1.gz

我已经从debian repos安装了gem和ruby包装的jekyll。

1 个答案:

答案 0 :(得分:1)

也许gem install jekyll-paginate可以解决问题。