エラー内容
checking for clang... yes checking for Magick-config... no checking for pkg-config... yes checking for outdated ImageMagick version (<= 6.4.9)... no checking for presence of MagickWand API (ImageMagick version >= 6.9.0)... no checking for Ruby version >= 1.8.5... yes checking for stdint.h... yes checking for sys/types.h... yes checking for wand/MagickWand.h... no Can't install RMagick 2.16.0. 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. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/Users/.rbenv/versions/2.4.0/bin/$(RUBY_BASE_NAME)
原因
imagemagickのバージョン(imagemagick-7.0.5-0)?
解決方法
バージョン7を削除し、バージョン6をいれる。
brew unlink imagemagick brew uninstall imagemagick brew install imagemagick@6 brew link imagemagick@6 --force sudo gem install rmagick