首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >asciidoctor-pdf不能加载这样的文件-矩阵(LoadError)

asciidoctor-pdf不能加载这样的文件-矩阵(LoadError)
EN

Stack Overflow用户
提问于 2022-03-08 09:18:52
回答 1查看 401关注 0票数 0

我正在一台新机器上构建一个现有的asciidoc项目,当它在我的旧机器上工作时,它会抛出以下错误:

代码语言:javascript
运行
复制
$ bundle exec asciidoctor-pdf book.adoc

bundler: failed to load command: asciidoctor-pdf (/book/vendor/bundle/ruby/3.1.0/bin/asciidoctor-pdf)
/book/vendor/bundle/ruby/3.1.0/gems/prawn-2.4.0/lib/prawn/transformation_stack.rb:10:in `require': cannot load such file -- matrix (LoadError)
  from /book/vendor/bundle/ruby/3.1.0/gems/prawn-2.4.0/lib/prawn/transformation_stack.rb:10:in `<top (required)>'
  from /book/vendor/bundle/ruby/3.1.0/gems/prawn-2.4.0/lib/prawn.rb:67:in `require_relative'
  from /book/vendor/bundle/ruby/3.1.0/gems/prawn-2.4.0/lib/prawn.rb:67:in `<top (required)>'
  from /book/vendor/bundle/ruby/3.1.0/gems/asciidoctor-pdf-1.6.2/lib/asciidoctor/pdf.rb:5:in `require'
  from /book/vendor/bundle/ruby/3.1.0/gems/asciidoctor-pdf-1.6.2/lib/asciidoctor/pdf.rb:5:in `<top (required)>'
  from /book/vendor/bundle/ruby/3.1.0/gems/asciidoctor-pdf-1.6.2/bin/asciidoctor-pdf:5:in `require'
  from /book/vendor/bundle/ruby/3.1.0/gems/asciidoctor-pdf-1.6.2/bin/asciidoctor-pdf:5:in `<top (required)>'
  from /book/vendor/bundle/ruby/3.1.0/bin/asciidoctor-pdf:25:in `load'
  from /book/vendor/bundle/ruby/3.1.0/bin/asciidoctor-pdf:25:in `<top (required)>'
  from /book/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.8/lib/bundler/cli/exec.rb:58:in `load'
  from /book/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.8/lib/bundler/cli/exec.rb:58:in `kernel_load'
  from /book/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.8/lib/bundler/cli/exec.rb:23:in `run'
  from /book/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.8/lib/bundler/cli.rb:484:in `exec'
  from /book/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.8/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  from /book/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.8/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
  from /book/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.8/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
  from /book/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.8/lib/bundler/cli.rb:31:in `dispatch'
  from /book/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.8/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
  from /book/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.8/lib/bundler/cli.rb:25:in `start'
  from /book/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.8/exe/bundle:48:in `block in <top (required)>'
  from /book/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.8/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'
  from /book/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.8/exe/bundle:36:in `<top (required)>'
  from /opt/homebrew/opt/ruby/bin/bundle:25:in `load'
  from /opt/homebrew/opt/ruby/bin/bundle:25:in `<main>'

我使用的是bundler 2.3.8,我的Gemfile源代码是:

代码语言:javascript
运行
复制
source 'https://rubygems.org'

gem 'asciidoctor', "2.0.17"
gem 'asciidoctor-pdf', "1.6.2"
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71392585

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档