LoginSignup
37
31

More than 5 years have passed since last update.

MacにRMagickをインストールする

Last updated at Posted at 2014-04-03

手順

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

参考

rmagick 2.13.2 のインストール時のエラーの解決法 - $ cat /var/log/shin

37
31
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
37
31