rabbit のインストールでエラー

プレゼンテーションツール rabbit をインストールしようとするも

gem install rabbit

ERROR:  While executing gem ... (ArgumentError)
    undefined class/module YAML::PrivateType

と言われちゃう。

例によってググると解決策が載っていて

ruby -r yaml -S gem install rabbit

でインストールできるそうな。

...まだダメだった。

poppler-1.0.0 がインストールできない、と怒られる。

checking for GCC... yes
checking for rb_define_alloc_func() in ruby.h... yes
checking for rb_block_proc() in ruby.h... yes
checking for new allocation framework... yes
checking for attribute assignment... no
checking for cairo... yes
checking for rb_cairo.h... yes
checking for Win32 OS... no
checking for poppler-glib... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

どうやら poppler-glib が無いみたい

apt-get install libpoppler-glib-dev

で出来そう。

... 出来た。