Page 1 of 1

Trouble with installing Image::Magick

Posted: 2014-07-26T05:29:57-07:00
by artem78
I install ImageMagick package on my Linux. Next I go to CPAN and try to install Image::Magick, but I get error, that MagicCore.h not found. What should I do?

Code: Select all

cpan[3]> install Image::Magick
Running install for module 'Image::Magick'
Running make for J/JC/JCRISTY/PerlMagick-6.87.tar.gz
Checksum for /home/artem/.cpan/sources/authors/id/J/JC/JCRISTY/PerlMagick-6.87.tar.gz ok
Scanning cache /home/artem/.cpan/build for sizes
............................................--------------------------------DONE
DEL(1/15): /home/artem/.cpan/build/DateTime-Locale-0.45-UTi3Cq 
DEL(2/15): /home/artem/.cpan/build/Capture-Tiny-0.24-ukxLM5 
DEL(3/15): /home/artem/.cpan/build/Params-Util-1.07-t1JXg5 
DEL(4/15): /home/artem/.cpan/build/Data-OptList-0.109-2dnJfA 
DEL(5/15): /home/artem/.cpan/build/Sub-Exporter-0.987-EATdn6 
DEL(6/15): /home/artem/.cpan/build/Test-Output-1.03-_ku1Zb 
DEL(7/15): /home/artem/.cpan/build/Class-Load-0.21-ep3RfF 
DEL(8/15): /home/artem/.cpan/build/Scalar-List-Utils-1.39-0oKpGE 
DEL(9/15): /home/artem/.cpan/build/List-AllUtils-0.08-s0ztJX 
DEL(10/15): /home/artem/.cpan/build/Class-Singleton-1.4-KpTJEC 
DEL(11/15): /home/artem/.cpan/build/DateTime-TimeZone-1.71-hn1yq6 
DEL(12/15): /home/artem/.cpan/build/DateTime-1.10-8fe7gf 
DEL(13/15): /home/artem/.cpan/build/Text-CSV_XS-1.09-djSkhc 
DEL(14/15): /home/artem/.cpan/build/Class-CSV-1.03-X4Y4gx 
DEL(15/15): /home/artem/.cpan/build/HTTP-Daemon-6.01-sW6IVj 

  CPAN.pm: Going to build J/JC/JCRISTY/PerlMagick-6.87.tar.gz

Checking if your kit is complete...
Looks good
Warning (mostly harmless): No library found for -lMagickCore-6.Q16
Generating a Unix-style Makefile
Writing Makefile for Image::Magick
Writing MYMETA.yml and MYMETA.json
cp Magick.pm blib/lib/Image/Magick.pm
AutoSplitting blib/lib/Image/Magick.pm (blib/lib/auto/Image/Magick)
Running Mkbootstrap for Image::Magick ()
chmod 644 Magick.bs
/usr/bin/perl /usr/share/perl/5.14/ExtUtils/xsubpp  -typemap /usr/share/perl/5.14/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" -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/freetype2 -g -O2 -Wall -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -O2 -g   -DVERSION=\"6.87\" -DXS_VERSION=\"6.87\" -fPIC "-I/usr/lib/perl/5.14/CORE"  -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c
Magick.xs:60:31: fatal error: magick/MagickCore.h: Нет такого файла или каталога
 #include <magick/MagickCore.h>
                               ^
compilation terminated.
make: *** [Magick.o] Ошибка 1
  JCRISTY/PerlMagick-6.87.tar.gz
  /usr/bin/make -- NOT OK
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible
Failed during this command:
 JCRISTY/PerlMagick-6.87.tar.gz               : make NO