将博客导入 Jekyll - 这个加载错误是什么 'require cannot load such file'?

Import blog to Jekyll - what is this load error 'require cannot load such file'?

从弹出的相关问题来看,我好像少了一个依赖(Ubuntu 16.04)。但是我在 installation guide, and also bundler, because when I tried to set up a new project it gave an error saying that was needed. Once that was installed I ran jekyll new my-site and it set up all the folders and files fine. Then I exported my blog to an xml file, and typed in the command to import it into jekyll:

中列出了依赖项
$ ruby -rubygems -e 'require "jekyll-import";
JekyllImport::Importers::Blogger.run({
"source"        =>"/Downloads/blog-01-18-2017.xml",
})'

但它给了我这个错误:

/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot 
load such file -- jekyll-import (LoadError)
    from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from -e:1:in `<main>'

如何找出缺少的依赖项?还有什么我应该做的吗?

在使用 jekyll-import 之前,您需要 install 它:

$ gem install jekyll-import

Because the importers have many of their own dependencies, they are made available via a separate gem called jekyll-import. To use them, all you need to do is install the gem, and they will become available as part of Jekyll’s standard command line interface.