The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can't install Image::Magick perl module on WHM 11.36

Discussion in 'EasyApache' started by Max Zmushko, Apr 10, 2013.

  1. Max Zmushko

    Max Zmushko Registered

    Joined:
    Apr 10, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,
    I'm moving from a shared hosting to a dedicated server and faced a trouble with ImageMagick. All of my scripts using Image::Magick perl module stoped working.
    I was able to locate an error:
    Code:
    [Wed Apr 10 11:27:27 2013] [error] [client ......] Can't locate Image/Magick.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at FileLoader.cgi line 13.
    [Wed Apr 10 11:27:27 2013] [error] [client ......] BEGIN failed--compilation aborted at FileLoader.cgi line 13.
    [Wed Apr 10 11:27:27 2013] [error] [client ......] Premature end of script headers: FileLoader.cgi
    Following cPanel & WHM 11.36 Release Notes
    I've installed ImageMagick and ImageMagick perl bindings yum packages

    rpm -qa listing:
    Code:
    @cloud [~]# rpm -qa | grep ImageMagick
    ImageMagick-c++-6.2.8.0-15.el5_8
    ImageMagick-c++-6.2.8.0-15.el5_8
    ImageMagick-6.2.8.0-15.el5_8
    ImageMagick-c++-devel-6.2.8.0-15.el5_8
    ImageMagick-devel-6.2.8.0-15.el5_8
    ImageMagick-c++-devel-6.2.8.0-15.el5_8
    ImageMagick-perl-6.2.8.0-15.el5_8
    ImageMagick-6.2.8.0-15.el5_8
    cpanel-ImageMagick-6.8.0-1.cp1136
    ImageMagick-devel-6.2.8.0-15.el5_8
    I've also tried to add lines to my scripts
    Code:
    #!/bin/sh                                                                                                                                                                                               
     eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}; else exec /usr/bin/perl -x $0 ${1+"$@"}; fi;'
       if 0;
    #!/usr/bin/perl
    But all this haven't solved the problem

    Any help will be much apreciated
     
  2. Phincy

    Phincy Member

    Joined:
    Feb 11, 2012
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Max,
    it looks like the script is not checking the correct location for the file Magick.pm. Can you show me the output of the following command here.

    --
    rpm -ql ImageMagick-perl | grep Magick.pm
    --


    In my test server, the Magick.pm is located at "/usr/lib64/perl5/vendor_perl/Image/Magick.pm". It is an x86_64 server with cpanel 11.36.

    I believe simply copying the Magick.pm as obtained from the command I mentioned above to any of the locations specified by @INC should so the job.

    eg. /usr/local/lib/perl5/5.8.8/x86_64-linux

    Hope this helps.
     
    #2 Phincy, Apr 11, 2013
    Last edited: Apr 11, 2013
  3. Max Zmushko

    Max Zmushko Registered

    Joined:
    Apr 10, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello Phincy,

    Code:
    rpm -ql ImageMagick-perl | grep Magick.pm 
    
    /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/Image/Magick.pm
    I have copied Image folder to /usr/local/lib/perl5/5.8.8/x86_64-linux/ and now I am getting new issue:

    Code:
    @cloud [~]# perl -we 'use Image::Magick; print "HI"'
    Can't find 'boot_Image__Magick' symbol in /usr/lib64/libMagick.so
     at -e line 1.
    Compilation failed in require at -e line 1.
    BEGIN failed--compilation aborted at -e line 1.
    
    root@cloud [~]# rpm -qf /usr/lib64/libMagick.so
    ImageMagick-devel-6.2.8.0-15.el5_8
     
  4. lldeepakll

    lldeepakll Well-Known Member

    Joined:
    May 20, 2012
    Messages:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    I am facing below error while installing "Image::Magick" using install a perl module option in whm (11.36).
    ----------------------------------------------------------------
    Running install for module 'Image::Magick'

    The module Image::Magick isn't available on CPAN.

    Either the module has not yet been uploaded to CPAN, or it is
    temporary unavailable. Please contact the author to find out
    more about the status. Try 'i Image::Magick'.
    ----------------------------------------------------------------

    Please suggest the exact way to install Image::Magick

    Thanks
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,468
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
Loading...

Share This Page