PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Hi,
Attempting to install the CPAN Image::Magick module and am getting a fatal error that a core file is missing:
Reading '/Users/coblem/.cpan/Metadata'
Database was generated on Sat, 27 Jul 2013 18:29:02 GMT
Running install for module 'Image::Magick'
Running make for J/JC/JCRISTY/PerlMagick-6.86.tar.gz
Checksum for /Users/coblem/.cpan/sources/authors/id/J/JC/JCRISTY/PerlMagick-6.86.tar.gz ok
CPAN.pm: Building J/JC/JCRISTY/PerlMagick-6.86.tar.gz
Checking if your kit is complete...
Looks good
Warning (mostly harmless): No library found for -lperl
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)
/opt/local/bin/perl5.12 /opt/local/lib/perl5/5.12.4/ExtUtils/xsubpp -typemap /opt/local/lib/perl5/5.12.4/ExtUtils/typemap -typemap typemap Magick.xs > Magick.xsc && mv Magick.xsc Magick.c
/usr/bin/clang -c -I/usr/local/include/ImageMagick-6 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/libxml2 -I"/usr/include/ImageMagick-6" -pipe -O2 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -fstack-protector -I/opt/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/opt/local/lib/perl5/5.12.4/darwin-thread-multi-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
JCRISTY/PerlMagick-6.86.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
@matthewc100 - did you make any progress on figuring this out? I'm getting the same thing on Ubuntu 13.04 x86_64.
The version shown in /usr/include/ImageMagick/magick/version.h is:
but the Perl module installer seems to be looking in /usr/include/ImageMagick-6
I tried making a symlink from /usr/include/ImageMagick-6 to /usr/include/ImageMagick, but that just caused compilation errors instead.
The result is still the same after installing every -dev ImageMagick package I could find.
I am having a failed cpan install as well.... trying to build a new dev/test environment on my new laptop running windows7. perl 5.14.2 installed fine from Strawberry. I installed a couple other modules with cpan without trouble, but it will not make Image::Magick even though it 'finds' it. Any resolution?
Going to read '/root/.cpan/Metadata'
Database was generated on Mon, 18 Nov 2013 19:07:31 GMT
Installing Image::Magick version 6.86...
Running install for module 'Image::Magick'
Running make for J/JC/JCRISTY/PerlMagick-6.86.tar.gz
Checksum for /root/.cpan/source/authors/id/J/JC/JCRISTY/PerlMagick-6.86.tar.gz ok
CPAN.pm: Going to build J/JC/JCRISTY/PerlMagick-6.86.tar.gz
Checking if your kit is complete...
Looks good
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)
/usr/local/bin/perl /usr/local/lib/perl5/5.14/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/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" -DAPPLLIB_EXP="/usr/local/lib/perl5/5.14/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -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 -O2 -pipe -fno-strict-aliasing -DVERSION=\"6.86\" -DXS_VERSION=\"6.86\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.14/mach/CORE" -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c
*** Error code 1
Stop in /var/cpan/cpan/PerlMagick-6.86-f3OZgt.
JCRISTY/PerlMagick-6.86.tar.gz
/usr/bin/make -- NOT OK
'YAML' not installed, will not store persistent state
Skipping test because of notest pragma
Running make install
Make had returned bad status, install seems impossible
cpan[1]> install Image::Magick
Going to read '/home/kaefert/.cpan/Metadata'
Database was generated on Tue, 10 Dec 2013 11:29:03 GMT
Running install for module 'Image::Magick'
Running make for J/JC/JCRISTY/PerlMagick-6.87.tar.gz
Checksum for /home/kaefert/.cpan/sources/authors/id/J/JC/JCRISTY/PerlMagick-6.87.tar.gz ok
Scanning cache /home/kaefert/.cpan/build for sizes
............................................................................DONE
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: No such file or directory
#include <magick/MagickCore.h>
^
compilation terminated.
make: *** [Magick.o] Error 1
JCRISTY/PerlMagick-6.87.tar.gz
/usr/bin/make -- NOT OK
'YAML' not installed, will not store persistent state
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
cpan[2]>
PerlMagick 6.87 requires ImageMagick 6.8.7. Its possible PerlMagick is part of your OS RPM distribution. For example, under Fedora we install PerlMagick like this:
magick wrote:PerlMagick 6.87 requires ImageMagick 6.8.7. Its possible PerlMagick is part of your OS RPM distribution. For example, under Fedora we install PerlMagick like this:
yum install ImageMagick-perl
hmm, sadly, all the imagemagick packages I have available are:
imagemagick (8:6.7.7.10-5ubuntu3)
imagemagick-common (8:6.7.7.10-5ubuntu3)
imagemagick-dbg (8:6.7.7.10-5ubuntu3)
imagemagick-doc (8:6.7.7.10-5ubuntu3)
and
imagemagick & imagemagick-common are currently installed.