わさっきhb

大学(教育研究)とか ,親馬鹿とか,和歌山とか,とか,とか.

UbuntuでRMagick

まずrootで,

# apt-get install imagemagick libmagick++9-dev

次に「gem install rmagick」では失敗.最新版は,ImageMagick 6.3以降が必要なのに対し,aptで取ってきたのは「http(中略) gutsy/main imagemagick 7:6.2.4.5.dfsg1-2ubuntu1」のため.
http://rmagick.rubyforge.org/install-linux.html のOption A.に

If you installed GraphicsMagick in step 2 then you must install the latest RMagick 1.15.nn gem using the gem command's -v option, like this. Use the latest fix number instead of nn.

# gem install rmagick -v 1.15.nn

とある.nnは,http://raa.ruby-lang.org/project/RMagick を見ると,

Download: http://rubyforge.org/frs/download.php/32330/RMagick-1.15.13.tar.gz

となっているので,

# gem install rmagick -v 1.15.13

としてみると,無事成功.
確認は,

$ irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'RMagick'
=> true
irb(main):003:0>