##手順
###ImageMagickをインストールする
$ brew link libtool
$ brew install imagemagick
###RMagickをインストールする
$ gem install rmagick
###上記でエラーが出た場合
checking for stdint.h... yes
checking for sys/types.h... yes
checking for wand/MagickWand.h... no
Can't install RMagick 2.13.2. Can't find MagickWand.h.
*** 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.
このようなエラーが出た時は、PKG_CONFIG_PATHが間違っているようなので自分の環境のPATHを与えてあげればOK
PKG_CONFIG_PATH=/usr/local/Cellar/imagemagick/6.8.7-7/lib/pkgconfig/ gem install rmagick