gem install で Re:VIEW をインストールした直後にPDF作成を試みると下記のように失敗する。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
$ rake pdf review-pdfmaker config.yml compiling sample.tex /home/taro/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/review-2.5.0/lib/review/pdfmaker.rb:39:in `system_or_raise': failed to run command: ebb cover.jpg (RuntimeError) from /home/taro/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/review-2.5.0/lib/review/pdfmaker.rb:272:in `block in copy_images' from /home/taro/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/review-2.5.0/lib/review/pdfmaker.rb:264:in `chdir' from /home/taro/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/review-2.5.0/lib/review/pdfmaker.rb:264:in `copy_images' from /home/taro/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/review-2.5.0/lib/review/pdfmaker.rb:233:in `generate_pdf' from /home/taro/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/review-2.5.0/lib/review/pdfmaker.rb:131:in `execute' from /home/taro/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/review-2.5.0/lib/review/pdfmaker.rb:81:in `execute' from /home/taro/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/review-2.5.0/bin/review-pdfmaker:16:in `<top (required)>' from /home/taro/.rbenv/versions/2.4.3/bin/review-pdfmaker:23:in `load' from /home/taro/.rbenv/versions/2.4.3/bin/review-pdfmaker:23:in `<main>' rake aborted! Command failed with status (1): [review-pdfmaker config.yml...] lib/tasks/review.rake:71:in `block in <top (required)>' Tasks: TOP => pdf => book.pdf (See full trace by running task with --trace) |
原因
PDFを生成するためにはTeXのインストールが必要である。
インストール方法
Ubuntu 16.04LTSのばあい
1 2 3 4 5 6 7 8 9 10 11 |
$ sudo apt-get install texlive-lang-japanese $ sudo apt update $ sudo apt upgrade $ sudo apt install texlive-lang-cjk $ sudo apt install texlive-fonts-recommended $ sudo apt install texlive-fonts-extra |