gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 23:16:03 25 4
gpt4 key购买 nike

从弹出的相关问题来看,我似乎缺少依赖性(Ubuntu 16.04)。但是我在installation guide和捆绑程序中列出了依赖项,因为当我尝试建立一个新项目时,它给出了一个错误,指出需要这样做。安装完成后,我运行了jekyll new my-site,它很好地设置了所有文件夹和文件。然后,我将博客导出到xml文件,然后将命令输入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.

关于import - 将博客导入Jekyll-这是什么加载错误 'require cannot load such file'?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41724758/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com