This queue is for tickets about the PerlMagick CPAN distribution.

Report information
The Basics
Id:
122253
Status:
open
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
tomasantunes [...] gmail.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



Subject: can't install module
Date: Tue, 27 Jun 2017 17:04:12 +0100
To: bug-PerlMagick@rt.cpan.org
From: Tomás Antunes <tomasantunes@gmail.com>
Can't install module.

System info: 
Perl 5.22.1
Ubuntu 16.04.2
Cpanm 1.7040

build log:
cpanm (App::cpanminus) 1.7040 on perl 5.022001 built for x86_64-linux-gnu-thread-multi
Work directory is /home/tomas/.cpanm/work/1498579141.23753
You have make /usr/bin/make
You have LWP 6.15
You have /bin/tar: tar (GNU tar) 1.28
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching Image::Magick () on cpanmetadb ...
--> Working on Image::Magick
-> OK
Unpacking PerlMagick-6.89-1.tar.gz
Entering PerlMagick-6.89
META.yml/json not found. Creating skeleton for it.
Configuring PerlMagick-6.89-1
Running Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Image::Magick
Writing MYMETA.yml and MYMETA.json
-> 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/tomas/.cpanm/work/1498579141.23753/build.log for details. Retry with --force to force install it.
On Tue Jun 27 12:04:22 2017, tomasantunes@gmail.com wrote:
Show quoted text
> Can't install module. > > System info: > Perl 5.22.1 > Ubuntu 16.04.2 > Cpanm 1.7040 > > build log: > cpanm (App::cpanminus) 1.7040 on perl 5.022001 built for > x86_64-linux-gnu-thread-multi > Work directory is /home/tomas/.cpanm/work/1498579141.23753 > You have make /usr/bin/make > You have LWP 6.15 > You have /bin/tar: tar (GNU tar) 1.28 > Copyright (C) 2014 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
> >.
> This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. > > Written by John Gilmore and Jay Fenlason. > You have /usr/bin/unzip > Searching Image::Magick () on cpanmetadb ... > --> Working on Image::Magick > Fetching > http://www.cpan.org/authors/id/J/JC/JCRISTY/PerlMagick-6.89-1.tar.gz > -> OK > Unpacking PerlMagick-6.89-1.tar.gz > Entering PerlMagick-6.89 > META.yml/json not found. Creating skeleton for it. > Configuring PerlMagick-6.89-1 > Running Makefile.PL > Checking if your kit is complete... > Looks good > Generating a Unix-style Makefile > Writing Makefile for Image::Magick > Writing MYMETA.yml and MYMETA.json > -> 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/tomas/.cpanm/work/1498579141.23753/build.log for details. Retry with > --force to force install it.
A similar failure to install Image-Magick, this time on perl-5.28.0 using 'cpanm' as the installer. An excerpt from the cpanm build.log: ##### --> Working on Image::Magick Fetching http://www.cpan.org/authors/id/J/JC/JCRISTY/PerlMagick-6.89-1.tar.gz -> OK Unpacking PerlMagick-6.89-1.tar.gz Entering PerlMagick-6.89 META.yml/json not found. Creating skeleton for it. Configuring PerlMagick-6.89-1 Running Makefile.PL Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Image::Magick Writing MYMETA.yml and MYMETA.json -> OK Checking dependencies from MYMETA.json ... Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.34) 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 Magick () chmod 644 "Magick.bs" "/home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Magick.bs blib/arch/auto/Image/Magick/Magick.bs 644 "/home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/bin/perl" "/home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/lib/5.28.0/ExtUtils/xsubpp" -typemap '/home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/lib/5.28.0/ExtUtils/typemap' -typemap '/home/jkeenan/.cpanm/work/1542905602.10228/PerlMagick-6.89/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" -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -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 -DVERSION=\"6.89\" -DXS_VERSION=\"6.89\" -fPIC "-I/home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/lib/5.28.0/x86_64-linux/CORE" -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c Magick.xs:60:10: fatal error: magick/MagickCore.h: No such file or directory #include <magick/MagickCore.h> ^~~~~~~~~~~~~~~~~~~~~ compilation terminated. Makefile:347: recipe for target 'Magick.o' failed make: *** [Magick.o] Error 1 -> FAIL Installing Image::Magick failed. See /home/jkeenan/.cpanm/work/1542905602.10228/build.log for details. Retry with --force to force install it. ##### Thank you very much. Jim Keenan
On Thu Nov 22 11:58:17 2018, JKEENAN wrote: [snip]
Show quoted text
> > A similar failure to install Image-Magick, this time on perl-5.28.0 > using 'cpanm' as the installer. An excerpt from the cpanm build.log: > > ##### > --> Working on Image::Magick > Fetching http://www.cpan.org/authors/id/J/JC/JCRISTY/PerlMagick-6.89- > 1.tar.gz > -> OK > Unpacking PerlMagick-6.89-1.tar.gz > Entering PerlMagick-6.89 > META.yml/json not found. Creating skeleton for it. > Configuring PerlMagick-6.89-1 > Running Makefile.PL > Checking if your kit is complete... > Looks good > Generating a Unix-style Makefile > Writing Makefile for Image::Magick > Writing MYMETA.yml and MYMETA.json > -> OK > Checking dependencies from MYMETA.json ... > Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.34) > 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 Magick () > chmod 644 "Magick.bs" > "/home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/bin/perl" > -MExtUtils::Command::MM -e 'cp_nonempty' -- Magick.bs > blib/arch/auto/Image/Magick/Magick.bs 644 > "/home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/bin/perl" > "/home/jkeenan/perl5/perlbrew/perls/perl- > 5.28.0/lib/5.28.0/ExtUtils/xsubpp" -typemap > '/home/jkeenan/perl5/perlbrew/perls/perl- > 5.28.0/lib/5.28.0/ExtUtils/typemap' -typemap > '/home/jkeenan/.cpanm/work/1542905602.10228/PerlMagick-6.89/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" -fwrapv -fno-strict-aliasing -pipe > -fstack-protector-strong -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 > -DVERSION=\"6.89\" -DXS_VERSION=\"6.89\" -fPIC "- > I/home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/lib/5.28.0/x86_64- > linux/CORE" -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c > Magick.xs:60:10: fatal error: magick/MagickCore.h: No such file or > directory > #include <magick/MagickCore.h> > ^~~~~~~~~~~~~~~~~~~~~ > compilation terminated. > Makefile:347: recipe for target 'Magick.o' failed > make: *** [Magick.o] Error 1 > -> FAIL Installing Image::Magick failed. See > /home/jkeenan/.cpanm/work/1542905602.10228/build.log for details. > Retry with --force to force install it. > ##### >
I should note that apt-get tells me I have the latest version of imagemagick installed: ##### $ sudo apt-get install imagemagick [sudo] password for jkeenan: Reading package lists... Done Building dependency tree Reading state information... Done imagemagick is already the newest version (8:6.9.7.4+dfsg-16ubuntu6.4). 0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded. #####
Subject: [rt.cpan.org #122253] can't install module
Date: Wed, 21 Aug 2019 00:06:25 +0200
To: bug-PerlMagick@rt.cpan.org
From: Håkon Hægland <hakon.hagland@gmail.com>
I was able to install the module by first installing a perl with a shared library (libperl.so) :

perlbrew install perl-5.30.0 --notest --noman --as=5.30.0-reloc -Duseshrplib
perlbrew use 5.30.0-reloc

Then applying the attached patch (Makefile-PL.patch) that adds the include path 

-I/usr/include/x86_64-linux-gnu/ImageMagick-6

to $CCFLAGS_magic, and adds $Config{archlib}/CORE to $LIBS_magick


Message body is not shown because sender requested not to inline it.



This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.