LoginSignup
12
11

More than 5 years have passed since last update.

Rails rmagickをインストールする手順

Posted at

筆者はかなりrmagickに苦戦させて頂いたので、同じ人がいるのではないかと思いやり方を記載します。

■必要なもの
ImageMagick

No package 'MagickCore' found
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.

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/takashiisobe/.rbenv/versions/2.1.1/bin/ruby

extconf failed, exit code 1

Gem files will remain installed in /Users/takashiisobe/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rmagick-2.13.2 for inspection.
Results logged to /Users/takashiisobe/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/rmagick-2.13.2/gem_make.out

これがエラー何だけど・・・
何言っているかわからないですよね!?

要するに「MagickCore」が見つからないということです。

brewでImageMagickをインストールすればPATH通って簡単なので、やってみてください。

6.8.7
brew update # => updateするといい感じに入ってくれます。
brew install ImageMagick

brewのインストール方法は以下で説明しています。
http://qiita.com/issobero/items/e0443b79da117ed48294

12
11
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
12
11