Open MyMyrtle opened 4 years ago
I just tried and got the same error, Perl is trying to use the wrong version of ImageMagick. If you open your cpan build log, it probably says something like this:
/usr/bin/ld: cannot find -lMagickCore-6.Q16
collect2: error: ld returned 1 exit status
make: *** [Makefile:488: blib/arch/auto/Image/Magick/Magick.so] Error 1
You could try installing Perl-Magick from your distro's package repo (if available), or build from source: https://imagemagick.org/script/perl-magick.php
Thank you for the answer. I tried playing around, but couldn't make it work.
Reading the .cpanm/build.log, I realized that after not finding ImageMagick, it downloads version 6.89 and installs it. However, there is some problem with magick/baseconfig.h
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.04_01)
Building and testing Image-Magick-6.89
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.22/ExtUtils/xsubpp" -typemap "/usr/share/perl/5.22/ExtUtils/typemap" -typemap "typemap" Magick.xs > Magick.xsc && mv Magick.xsc Magick.c
x86_64-linux-gnu-gcc -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 -fwrapv -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.89\" -DXS_VERSION=\"6.89\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.22/CORE" -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c
In file included from /usr/include/ImageMagick-6/magick/MagickCore.h:29:0,
from Magick.xs:60:
/usr/include/ImageMagick-6/magick/magick-config.h:21:38: fatal error: magick/magick-baseconfig.h: No such file or directory
compilation terminated.
Makefile:350: recipe for target 'Magick.o' failed
make: *** [Magick.o] Error 1
-> FAIL Installing Image::Magick failed. See /home/igarcia/.cpanm/work/1569575629.32647/build.log for details. Retry with --force to force install it.
-> FAIL Installing the dependencies failed: Missing version info for module 'Image::Magick'
-> FAIL Bailing out the installation for Project-Gantt-1.01.
By the way, at first complained because couldn't find MagickCore.h
and I installed libmagickcore-dev
in ubuntu. Maybe there is an issue between Image-Magick-6.89 it downloads and the magickcore-dev version I installed 8:6.8.9.9-7ubuntu5.14
. I have no clue
Thanks for your help anyway!
Hi, I am not fluent with cpan at all, or perl, but running
cpan -i App::cpanminus
and thencpanm Project::Gantt
raises the following issue:Can you point me to the right direction, please?