Skip to content

Instantly share code, notes, and snippets.

@libitte
Created September 22, 2013 09:24
Show Gist options
  • Select an option

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

Select an option

Save libitte/6658315 to your computer and use it in GitHub Desktop.

mac に Image::Magick を導入する手順は以下の通り。

なんだが、makeしたときにエラーになる。

$ make
/Users/libitte/perl5/perlbrew/perls/perl-5.16.0/bin/perl /Users/libitte/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/ExtUtils/xsubpp  -typemap /Users/libitte/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/ExtUtils/typemap -typemap typemap  Magick.xs > Magick.xsc && mv Magick.xsc Magick.c
cc -c  -I/usr/local/include/ImageMagick-6 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/libxml2 -I"/usr/include/ImageMagick-6" -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/usr/include/freetype2 -fopenmp -g -O2 -Wall -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -O3   -DVERSION=\"6.86\" -DXS_VERSION=\"6.86\"  "-I/Users/libitte/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/darwin-2level/CORE"  -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c
clang: warning: argument unused during compilation: '-fopenmp'
Magick.xs:60:10: fatal error: 'magick/MagickCore.h' file not found
#include <magick/MagickCore.h>
         ^
1 error generated.
make: *** [Magick.o] Error 1
@libitte
Copy link
Copy Markdown
Author

libitte commented Oct 10, 2013

$ brew install ImageMagick

とかでも良いのかも。

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