【发布时间】:2016-05-07 04:57:52
【问题描述】:
我是第一次使用 jekyll。 我从here 下载了源代码。当我使用 jekyll 运行构建和运行站点时,它运行良好。现在我从这里下载了personal theme。导航到下载的主题文件夹然后构建新主题后不起作用。我收到以下错误:
Configuration file: /home/repos/sites/personal-jekyll-theme/_config.yml
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- jemoji (LoadError)
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/ruby/vendor_ruby/jekyll/plugin_manager.rb:28:in `block in require_gems'
from /usr/lib/ruby/vendor_ruby/jekyll/plugin_manager.rb:26:in `each'
from /usr/lib/ruby/vendor_ruby/jekyll/plugin_manager.rb:26:in `require_gems'
from /usr/lib/ruby/vendor_ruby/jekyll/plugin_manager.rb:19:in `conscientious_require'
from /usr/lib/ruby/vendor_ruby/jekyll/site.rb:71:in `setup'
from /usr/lib/ruby/vendor_ruby/jekyll/site.rb:33:in `initialize'
from /usr/lib/ruby/vendor_ruby/jekyll/commands/build.rb:28:in `new'
from /usr/lib/ruby/vendor_ruby/jekyll/commands/build.rb:28:in `process'
from /usr/lib/ruby/vendor_ruby/jekyll/commands/build.rb:17:in `block (2 levels) in init_with_program'
from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in `call'
from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in `block in execute'
from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in `each'
from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in `execute'
from /usr/lib/ruby/vendor_ruby/mercenary/program.rb:42:in `go'
from /usr/lib/ruby/vendor_ruby/mercenary.rb:19:in `program'
from /usr/bin/jekyll:18:in `<main>'
Ruby 版本:ruby 2.1.5p273 (2014-11-13) [x86_64-linux-gnu]
Jekyll 版本:jekyll 2.2.0
如果可能,请让我知道我在哪里以及做错了什么。是否有一些规则规定我只能在本地构建一个规则?据我搜索,我尝试更改 config.yml 中的端口号,并尝试通过指定各自的配置文件来构建不同的站点。 jekyll 仍然没有构建并给出相同的错误。提前感谢您的帮助。
我也得到了jekyll-feed Load Error的错误
【问题讨论】:
-
您是否按照How to run locally 下的 { Personal } README 中的说明进行操作?特别是,安装依赖项(如 jemoji)似乎很重要。
-
哦,不,我错过了。谢谢@乔丹。我还发现 jemoji 需要大于 2.2.4 的 ruby 版本。所以现在我尝试安装上述脚本,但由于我有旧的 ruby 版本,我必须更新版本,然后检查它是否有效。