*alexandre* has asked for the wisdom of the Perl Monks concerning the following question:

Hi, In my VPS where I deploy my web site I cannot install Image::Magick Under a a Ubuntu 16.04 server. I've tryed cpan>install Image::Magick but I got the Following error
install Image::Magick Running install for module 'Image::Magick' Checksum for /root/.cpan/sources/authors/id/J/JC/JCRISTY/PerlMagick-6. +89-1.tar.gz ok Scanning cache /root/.cpan/build for sizes ........-------------------------------------------------------------- +------DONE DEL(1/43): /root/.cpan/build/GD-2.71-RY28BT DEL(2/43): /root/.cpan/build/ExtUtils-PkgConfig-1.16-T9uzsc DEL(3/43): /root/.cpan/build/ExtUtils-PkgConfig-1.16-kItWa3 DEL(4/43): /root/.cpan/build/GD-2.71-wZAxlF DEL(5/43): /root/.cpan/build/Test-Fork-0.02-mg0PTU DEL(6/43): /root/.cpan/build/GD-2.71-vuR2l5 DEL(7/43): /root/.cpan/build/File-pushd-1.016-_e6wDB DEL(8/43): /root/.cpan/build/Module-CPANfile-1.1004-FzEGvm DEL(9/43): /root/.cpan/build/ExtUtils-MakeMaker-CPANfile-0.09-dN4UA7 DEL(10/43): /root/.cpan/build/Test-More-UTF8-0.05-SFXQgo DEL(11/43): /root/.cpan/build/Text-Template-1.56-Wj6Ef6 DEL(12/43): /root/.cpan/build/Sub-Install-0.928-_4PHQd DEL(13/43): /root/.cpan/build/Data-OptList-0.110-LIisL_ DEL(14/43): /root/.cpan/build/Sub-Exporter-0.987-bRM6hN DEL(15/43): /root/.cpan/build/Data-Section-0.200007-n5rG5J DEL(16/43): /root/.cpan/build/Software-License-0.103014-rJD3fE DEL(17/43): /root/.cpan/build/Module-Find-0.13-Gzl3hh DEL(18/43): /root/.cpan/build/File-Find-Object-v0.3.2-FL_i4O DEL(19/43): /root/.cpan/build/Data-Binary-0.01-rhpFuY DEL(20/43): /root/.cpan/build/Test-UseAllModules-0.17-PGXDsd DEL(21/43): /root/.cpan/build/CPAN-Meta-2.150010-bSeGma DEL(22/43): /root/.cpan/build/Data-Dump-1.23-1xmak7 DEL(23/43): /root/.cpan/build/Regexp-Trie-0.02-hhw0j_ DEL(24/43): /root/.cpan/build/CPAN-Meta-Requirements-2.140-6Snrzx DEL(25/43): /root/.cpan/build/Perl-PrereqScanner-NotQuiteLite-0.9906-Z +83wHQ DEL(26/43): /root/.cpan/build/SUPER-1.20190531-lsg7ak DEL(27/43): /root/.cpan/build/Test-MockModule-v0.170.0-Bsf3BS DEL(28/43): /root/.cpan/build/Archive-Zip-1.64-ZJmLfY DEL(29/43): /root/.cpan/build/Archive-Any-Lite-0.11-63OnOw DEL(30/43): /root/.cpan/build/Class-Accessor-0.51-kuFpDe DEL(31/43): /root/.cpan/build/Array-Diff-0.09-IzDBzd DEL(32/43): /root/.cpan/build/CPAN-DistnameInfo-0.12-KZe7N6 DEL(33/43): /root/.cpan/build/Module-CPANTS-Analyse-1.01-4MTUB8 DEL(34/43): /root/.cpan/build/Test-Kwalitee-1.28-xy3HTA DEL(35/43): /root/.cpan/build/ExtUtils-Config-0.008-ba3JlU DEL(36/43): /root/.cpan/build/ExtUtils-InstallPaths-0.012-Tgakzd DEL(37/43): /root/.cpan/build/ExtUtils-Helpers-0.026-22l9Ek DEL(38/43): /root/.cpan/build/Module-Build-Tiny-0.039-xX0Rj4 DEL(39/43): /root/.cpan/build/IO-stringy-2.111-qwAOtN DEL(40/43): /root/.cpan/build/Lingua-EN-Inflect-1.904-iZMaFN DEL(41/43): /root/.cpan/build/Pod-Spell-1.20-j_WtYo DEL(42/43): /root/.cpan/build/Pod-Spell-CommonMistakes-1.002-5MA0_A DEL(43/43): /root/.cpan/build/Text-CSV_XS-1.39-vsL3bf 'YAML' not installed, will not store persistent state Configuring J/JC/JCRISTY/PerlMagick-6.89-1.tar.gz with 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 JCRISTY/PerlMagick-6.89-1.tar.gz /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK Running make for J/JC/JCRISTY/PerlMagick-6.89-1.tar.gz 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 > Ma +gick.xsc && mv Magick.xsc Magick.c x86_64-linux-gnu-gcc -c -I/usr/local/include/ImageMagick-6 -DMAGICKCO +RE_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_S +OURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/freetype2 -g -O2 -Wall -p +thread -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 Magick.xs: In function ‘XS_Image__Magick_QueryFormat’: Magick.xs:13063:22: error: ‘MagickInfo {aka const volatile struct _Mag +ickInfo}’ has no member named ‘module’ if (magick_info->module == (char *) NULL) ^ In file included from /usr/lib/x86_64-linux-gnu/perl/5.22/CORE/perl.h: +5475:0, from Magick.xs:57: Magick.xs:13066:45: error: ‘MagickInfo {aka const volatile struct _Mag +ickInfo}’ has no member named ‘module’ PUSHs(sv_2mortal(newSVpv(magick_info->module,0))); ^ /usr/lib/x86_64-linux-gnu/perl/5.22/CORE/pp.h:302:28: note: in definit +ion of macro ‘PUSHs’ #define PUSHs(s) (*++sp = (s)) ^ Magick.xs:13066:15: note: in expansion of macro ‘sv_2mortal’ PUSHs(sv_2mortal(newSVpv(magick_info->module,0))); ^ Magick.xs:13066:26: note: in expansion of macro ‘newSVpv’ PUSHs(sv_2mortal(newSVpv(magick_info->module,0))); ^ Makefile:350: recipe for target 'Magick.o' failed make: *** [Magick.o] Error 1 JCRISTY/PerlMagick-6.89-1.tar.gz make -- NOT OK Failed during this command: JCRISTY/PerlMagick-6.89-1.tar.gz : make NO

Replies are listed 'Best First'.
Re: unable to install Image::Magick module
by hippo (Archbishop) on Aug 09, 2019 at 15:01 UTC
    I cannot install Image::Magick Under a a Ubuntu 16.04 server.

    It's already in the Xenial repos. No need to install from source.

    # apt-get install libimage-magick-q16-perl libimage-magick-perl imagem +agick
      Hi, I tried your solution but it's seems like you said that it's alreaady installed. I fix it within https://www.perlmonks.org/bare/?node_id=337883