依赖错误 jekyll-figure
Dependency Error jekyll-figure
当我 运行 bundle exec jekyll serve 我收到以下错误消息
Dependency Error: Yikes! It looks like you don't have jekyll-figure or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- jekyll-figure' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
jekyll 3.4.0 | Error: jekyll-figure
我将 gem 添加到 gem 文件并进行了捆绑安装……仍然收到错误消息
任何解决此问题的方法,谢谢。
宝石文件
source “https://rubygems.org”
ruby RUBY_VERSION
# This will help ensure the proper Jekyll version is running.
gem "jekyll", "3.4.0"
gem 'jekyll-paginate'
gem 'jekyll-sitemap'
gem 'jekyll-figure'
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
配置文件
# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely need to edit after that.
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'jekyll serve'. If you change this file, please restart the server process.
# Site settings
title: Name
email: contact@domainname.com
description: > # this means to ignore newlines until "baseurl:"
baseurl: "" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site
twitter_username:
github_username:
owner:
name: Name
avatar: images/Your_image.jpg
# Build settings
markdown: kramdown
exclude: ["README.md"]
sass:
load_paths:
- _sass
- bs
paginate: 10
paginate_path: "page:num"
gems:
- jekyll-paginate
- jekyll-sitemap
- jekyll-figure
bundle exec jekyll build --verbose --trace
的输出
记录级别:调试
配置文件:/home/justinechacko/Web/govtexam/_config.yml
需要:jekyll-figure
依赖错误:哎呀!看起来您没有安装 jekyll-figure 或其依赖项之一。为了使用当前配置的 Jekyll,您需要安装这个 gem。来自 Ruby 的完整错误消息是:'cannot load such file -- jekyll-figure' 如果您 运行 遇到麻烦,您可以在 https://jekyllrb.com/help/ 找到有用的资源!
/var/lib/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/external.rb:53:在rescue in block in require_with_graceful_fail': jekyll-figure (Jekyll::Errors::MissingDependencyException)
from /var/lib/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/external.rb:41:in
块中require_with_graceful_fail'
来自 /var/lib/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/external.rb:40:in each'
from /var/lib/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/external.rb:40:in
require_with_graceful_fail'
来自 /var/lib/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/plugin_manager.rb:27:in require_gems'
from /var/lib/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/plugin_manager.rb:19:in
conscientious_require'
来自 /var/lib/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/site.rb:111:in setup'
from /var/lib/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/site.rb:33:in
initialize'
来自 /var/lib/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/commands/build.rb:28:in new'
from /var/lib/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/commands/build.rb:28:in
process'
来自 /var/lib/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/commands/build.rb:16:in block (2 levels) in init_with_program'
from /var/lib/gems/2.3.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in
block in execute'
来自 /var/lib/gems/2.3.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in each'
from /var/lib/gems/2.3.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in
execute'
来自 /var/lib/gems/2.3.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in go'
from /var/lib/gems/2.3.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in
program'
从 /var/lib/gems/2.3.0/gems/jekyll-3.4.0/exe/jekyll:13:in <top (required)>'
from /usr/local/bin/jekyll:23:in
load'
来自 /usr/local/bin/jekyll:23:in `'
请查看此问题。谢谢。
问题出在插件的结构上gem。
只需将 _config.yml
更改为加载 jekyll/figure
即可..
gems:
- jekyll-paginate
- jekyll-sitemap
- jekyll/figure
当我 运行 bundle exec jekyll serve 我收到以下错误消息
Dependency Error: Yikes! It looks like you don't have jekyll-figure or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- jekyll-figure' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
jekyll 3.4.0 | Error: jekyll-figure
我将 gem 添加到 gem 文件并进行了捆绑安装……仍然收到错误消息 任何解决此问题的方法,谢谢。
宝石文件
source “https://rubygems.org”
ruby RUBY_VERSION
# This will help ensure the proper Jekyll version is running.
gem "jekyll", "3.4.0"
gem 'jekyll-paginate'
gem 'jekyll-sitemap'
gem 'jekyll-figure'
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
配置文件
# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely need to edit after that.
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'jekyll serve'. If you change this file, please restart the server process.
# Site settings
title: Name
email: contact@domainname.com
description: > # this means to ignore newlines until "baseurl:"
baseurl: "" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site
twitter_username:
github_username:
owner:
name: Name
avatar: images/Your_image.jpg
# Build settings
markdown: kramdown
exclude: ["README.md"]
sass:
load_paths:
- _sass
- bs
paginate: 10
paginate_path: "page:num"
gems:
- jekyll-paginate
- jekyll-sitemap
- jekyll-figure
bundle exec jekyll build --verbose --trace
的输出
记录级别:调试
配置文件:/home/justinechacko/Web/govtexam/_config.yml
需要:jekyll-figure
依赖错误:哎呀!看起来您没有安装 jekyll-figure 或其依赖项之一。为了使用当前配置的 Jekyll,您需要安装这个 gem。来自 Ruby 的完整错误消息是:'cannot load such file -- jekyll-figure' 如果您 运行 遇到麻烦,您可以在 https://jekyllrb.com/help/ 找到有用的资源!
/var/lib/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/external.rb:53:在rescue in block in require_with_graceful_fail': jekyll-figure (Jekyll::Errors::MissingDependencyException)
from /var/lib/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/external.rb:41:in
块中require_with_graceful_fail'
来自 /var/lib/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/external.rb:40:in each'
from /var/lib/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/external.rb:40:in
require_with_graceful_fail'
来自 /var/lib/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/plugin_manager.rb:27:in require_gems'
from /var/lib/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/plugin_manager.rb:19:in
conscientious_require'
来自 /var/lib/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/site.rb:111:in setup'
from /var/lib/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/site.rb:33:in
initialize'
来自 /var/lib/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/commands/build.rb:28:in new'
from /var/lib/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/commands/build.rb:28:in
process'
来自 /var/lib/gems/2.3.0/gems/jekyll-3.4.0/lib/jekyll/commands/build.rb:16:in block (2 levels) in init_with_program'
from /var/lib/gems/2.3.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in
block in execute'
来自 /var/lib/gems/2.3.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in each'
from /var/lib/gems/2.3.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in
execute'
来自 /var/lib/gems/2.3.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in go'
from /var/lib/gems/2.3.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in
program'
从 /var/lib/gems/2.3.0/gems/jekyll-3.4.0/exe/jekyll:13:in <top (required)>'
from /usr/local/bin/jekyll:23:in
load'
来自 /usr/local/bin/jekyll:23:in `'
请查看此问题。谢谢。
问题出在插件的结构上gem。
只需将 _config.yml
更改为加载 jekyll/figure
即可..
gems:
- jekyll-paginate
- jekyll-sitemap
- jekyll/figure