Skip to content

Instantly share code, notes, and snippets.

@libitte
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save libitte/9cbe612155ebecb1e183 to your computer and use it in GitHub Desktop.

Select an option

Save libitte/9cbe612155ebecb1e183 to your computer and use it in GitHub Desktop.
image-magick mac homebrew install

plenv を使っている場合、system perl を使うようにしておく

$ plenv versions
$ plenv local system
$ plenv versions

libjpeg, giflib, libpng あたりをいれておく

$ brew install libjpeg giflib

cpanm だけだといかないので look しつついれる

$ cpanm --prompt Image::Magick
# l と応える
$ make && make install

log

hachiya.nobuto@O-04116-MAC:~/.cpanm/work/1409240926.16857/PerlMagick-6.89$ cpanm --prompt Image::Magick
--> Working on Image::Magick
Fetching http://www.cpan.org/authors/id/J/JC/JCRISTY/PerlMagick-6.89.tar.gz ... OK
Configuring PerlMagick-6.89 ... OK
Building and testing Image-Magick-6.89 ... FAIL
Testing Image-Magick-6.89 failed.
You can s)kip, r)etry, f)orce install, e)xamine build log, or l)ook ? [s] l
Entering /Users/hachiya.nobuto/.cpanm/work/1409241057.17153/PerlMagick-6.89 with /bin/bash

hachiya.nobuto@O-04116-MAC:~/.cpanm/work/1409241057.17153/PerlMagick-6.89$ make
hachiya.nobuto@O-04116-MAC:~/.cpanm/work/1409241057.17153/PerlMagick-6.89$ make install
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /Users/hachiya.nobuto/perl5/lib/perl5/darwin-thread-multi-2level/auto/Image/Magick/Magick.bundle
Installing /Users/hachiya.nobuto/perl5/lib/perl5/darwin-thread-multi-2level/auto/Image/Magick/autosplit.ix
Installing /Users/hachiya.nobuto/perl5/lib/perl5/darwin-thread-multi-2level/Image/Magick.pm
Installing /Users/hachiya.nobuto/perl5/man/man3/Image::Magick.3pm
Appending installation info to /Users/hachiya.nobuto/perl5/lib/perl5/darwin-thread-multi-2level/perllocal.pod
@libitte
Copy link
Author

libitte commented Aug 28, 2014

@libitte
Copy link
Author

libitte commented Aug 29, 2014

@libitte
Copy link
Author

libitte commented Aug 29, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment