Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
1
Help us understand the problem. What is going on with this article?
@SatoTakeshiX

Re:VIEWでPDFを出力する

More than 1 year has passed since last update.

Re:View環境を整えたときのメモです。

公式ドキュメントをもとにセットアップをしていました。

install

$ gem install review
$ git clone https://github.com/kmuto/review.git
$ review-init hello
$ cd hello

pdfを出力しようとするとエラーになりました。

$ rake pdf
review-pdfmaker config.yml
compiling hello.tex
W, [2018-07-09T22:44:18.946295 #6812]  WARN -- : hello.re:1: headline is empty.
/Users/satoutakeshi/.rbenv/versions/2.1.8/lib/ruby/gems/2.1.0/gems/review-2.5.0/lib/review/pdfmaker.rb:39:in `system_or_raise': failed to run command: ebb cover.jpg (RuntimeError)
    from /Users/satoutakeshi/.rbenv/versions/2.1.8/lib/ruby/gems/2.1.0/gems/review-2.5.0/lib/review/pdfmaker.rb:272:in `block in copy_images'
    from /Users/satoutakeshi/.rbenv/versions/2.1.8/lib/ruby/gems/2.1.0/gems/review-2.5.0/lib/review/pdfmaker.rb:264:in `chdir'
    from /Users/satoutakeshi/.rbenv/versions/2.1.8/lib/ruby/gems/2.1.0/gems/review-2.5.0/lib/review/pdfmaker.rb:264:in `copy_images'
    from /Users/satoutakeshi/.rbenv/versions/2.1.8/lib/ruby/gems/2.1.0/gems/review-2.5.0/lib/review/pdfmaker.rb:233:in `generate_pdf'
    from /Users/satoutakeshi/.rbenv/versions/2.1.8/lib/ruby/gems/2.1.0/gems/review-2.5.0/lib/review/pdfmaker.rb:131:in `execute'
    from /Users/satoutakeshi/.rbenv/versions/2.1.8/lib/ruby/gems/2.1.0/gems/review-2.5.0/lib/review/pdfmaker.rb:81:in `execute'
    from /Users/satoutakeshi/.rbenv/versions/2.1.8/lib/ruby/gems/2.1.0/gems/review-2.5.0/bin/review-pdfmaker:16:in `<top (required)>'
    from /Users/satoutakeshi/.rbenv/versions/2.1.8/bin/review-pdfmaker:23:in `load'
    from /Users/satoutakeshi/.rbenv/versions/2.1.8/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)

エラーの原因はこちら

failed to run command: ebb cover.jpg

ebbというコマンドが実行されないとのこと。Texを入れないといけません。

ということでTexをインストールします。

3.2Gもあるので気長にダウンロードを待ちます。

~/.bash_profileファイルにtexコマンドのパスを通します

~/.bash_profile
$ echo export PATH=$PATH:/Library/Tex/texbin >> ~/.bash_profile
$ source  ~/.bash_profile

これでOKです。
もう一度$ rake pdfをするとPDFが出力されるはずです。

1
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
1
Help us understand the problem. What is going on with this article?