Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 13 of 13
  1. #1
    EMS
    EMS is offline
    BANNED
    Join Date
    May 2003
    Posts
    251

    Default Installing Image::magick Perl module

    Trying to install this via WHM and getting the following...

    CPAN.pm: Going to build J/JC/JCRISTY/PerlMagick-6.20.tar.gz

    Checking if your kit is complete...
    Looks good
    Note (probably harmless): No library found for -llcms
    Writing Makefile for Image::Magick
    cp Magick.pm blib/lib/Image/Magick.pm
    AutoSplitting blib/lib/Image/Magick.pm (blib/lib/auto/Image/Magick)
    /usr/bin/perl /usr/lib/perl5/5.8.6/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.6/ExtUtils/typemap Magick.xs > Magick.xsc && mv Magick.xsc Magick.c
    cc -c -I../ -I.. -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I/usr/include/libxml2 -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -g -O2 -Wall -pthread -O2 -DVERSION=\"6.2.0\" -DXS_VERSION=\"6.2.0\" -fpic "-I/usr/lib/perl5/5.8.6/i686-linux/CORE" -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H Magick.c
    Magick.c: In function `XS_Image__Magick_Animate':
    Magick.c:1970: warning: unused variable `ref'
    Magick.c:1965: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_Append':
    Magick.c:2044: warning: unused variable `ref'
    Magick.c:2039: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_Average':
    Magick.c:2175: warning: unused variable `ref'
    Magick.c:2170: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_BlobToImage':
    Magick.c:2266: warning: unused variable `ref'
    Magick.c:2261: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_Coalesce':
    Magick.c:2415: warning: unused variable `ref'
    Magick.c:2410: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_Copy':
    Magick.c:2498: warning: unused variable `ref'
    Magick.c:2493: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_DESTROY':
    Magick.c:2582: warning: unused variable `ref'
    Magick.c: In function `XS_Image__Magick_Display':
    Magick.c:2656: warning: unused variable `ref'
    Magick.c:2651: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_Flatten':
    Magick.c:2730: warning: unused variable `ref'
    Magick.c:2725: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_Fx':
    Magick.c:2821: warning: unused variable `ref'
    Magick.c:2816: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_Get':
    Magick.c:2973: warning: unused variable `ref'
    Magick.c:2968: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_Histogram':
    Magick.c:4101: warning: unused variable `ref'
    Magick.c:4096: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_GetPixels':
    Magick.c:4215: warning: unused variable `ref'
    Magick.c:4210: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_ImageToBlob':
    Magick.c:4454: warning: unused variable `ref'
    Magick.c:4449: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_MagickToMime':
    Magick.c:4551: warning: unused variable `ref'
    Magick.c:4547: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_Mogrify':
    Magick.c:4579: warning: unused variable `ref'
    Magick.c: In function `XS_Image__Magick_Montage':
    Magick.c:6673: warning: unused variable `ref'
    Magick.c:6668: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_Morph':
    Magick.c:7074: warning: unused variable `ref'
    Magick.c:7069: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_Mosaic':
    Magick.c:7198: warning: unused variable `ref'
    Magick.c:7193: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_Ping':
    Magick.c:7281: warning: unused variable `ref'
    Magick.c:7276: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_Preview':
    Magick.c:7461: warning: unused variable `ref'
    Magick.c:7456: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_QueryColor':
    Magick.c:7554: warning: unused variable `ref'
    Magick.c:7549: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_QueryColorname':
    Magick.c:7630: warning: unused variable `ref'
    Magick.c:7625: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_QueryFont':
    Magick.c:7700: warning: unused variable `ref'
    Magick.c:7695: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_QueryFontMetrics':
    Magick.c:7815: warning: unused variable `ref'
    Magick.c:7810: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_QueryMultilineFontMetrics':
    Magick.c:8173: warning: unused variable `ref'
    Magick.c:8168: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_QueryFormat':
    Magick.c:8531: warning: unused variable `ref'
    Magick.c:8526: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_Read':
    Magick.c:8619: warning: unused variable `ref'
    Magick.c:8614: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_Remote':
    Magick.c:8799: warning: unused variable `ref'
    Magick.c:8794: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_Set':
    Magick.c:8846: warning: unused variable `ref'
    Magick.c:8841: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_Transform':
    Magick.c:8904: warning: unused variable `ref'
    Magick.c:8899: warning: unused variable `ix'
    Magick.c: In function `XS_Image__Magick_Write':
    Magick.c:9045: warning: unused variable `ref'
    Magick.c:9040: warning: unused variable `ix'
    Running Mkbootstrap for Image::Magick ()
    chmod 644 Magick.bs
    rm -f blib/arch/auto/Image/Magick/Magick.so
    LD_RUN_PATH="/usr/lib:/lib:/usr/X11R6/lib" cc -L/usr/local/lib -shared -L/usr/local/lib Magick.o -o blib/arch/auto/Image/Magick/Magick.so -L/usr/local/lib -lMagick -L/usr/X11R6/lib -lfreetype -lz -L/usr/lib -ltiff -lfreetype -ljpeg -lpng -ldpstk -ldps -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lpthread -lm -lpthread
    /usr/bin/ld: cannot find -lbz2
    collect2: ld returned 1 exit status
    make: *** [blib/arch/auto/Image/Magick/Magick.so] Error 1
    /usr/bin/make -- NOT OK
    Running make install
    make had returned bad status, install seems impossible
    perlmod--Install done


    Any idea why this is happening ?

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Which OS are you running? If it's Fedora or RHE then there's an ImageMagick perl rpm that goes with the ImageMagick rpm version and you should installed that. Alternatively, remove the ImageMagick rpm, install it from source and then install the perl module from CPAN.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    EMS
    EMS is offline
    BANNED
    Join Date
    May 2003
    Posts
    251

    Default

    Hi, I installed the ImageMagick perl rpm but Image::Magick doesnt show in the installed perl modules in cpanel. The customer wants to use the PerlMagick interface but I dont see any evidence of these being installed by that rpm.

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    The rpm for the perl ImageMagick module is called ImageMagick-perl
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    EMS
    EMS is offline
    BANNED
    Join Date
    May 2003
    Posts
    251

    Default

    Yes. As mentioned above - I've installed this.

    I have ...

    ImageMagick.i386
    ImageMagick-devel.i386
    Imagemagick-perl.i386
    Last edited by EMS; 05-28-2005 at 02:53 AM.

  6. #6
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    What do you get with "perl -v" from command line ?
    Beau Henderson

  7. #7
    EMS
    EMS is offline
    BANNED
    Join Date
    May 2003
    Posts
    251

    Default

    The perl version is 5.8.6

  8. #8
    EMS
    EMS is offline
    BANNED
    Join Date
    May 2003
    Posts
    251

    Default

    Anyone else have any ideas ?

    Its FC3

  9. #9
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    As I mentioned, if the RPM route doesn't work, then you should remove them and install ImageMagick and Image::Magick by hand from source.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  10. #10
    EMS
    EMS is offline
    BANNED
    Join Date
    May 2003
    Posts
    251

    Default

    So the point in providing them inside whm is what ?

  11. #11
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Nothing much to do with WHM, that's just a front-end to your OS's rpm repository which is out of synch regarding the version of perl that it thinks is installed compared to the version you actually have installed. It's an OS configuration issue.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  12. #12
    EMS
    EMS is offline
    BANNED
    Join Date
    May 2003
    Posts
    251

    Default

    So the cpanel install process wont have anything to do with this ?

    Its confusing because this is a standard FC3 installation and all our boxes are identical - all have the exact same problem.

    I find it difficult to believe that the OS doesnt know what version of perl is installed. Can you elaborate on this ? What version does it think is installed ?

    Could anyone suggest how I update the rpm database with the correct packages ?

  13. #13
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    You need to understand a bit more how the rpm repository works. When you build an OS from the vendors distribution and it uses rpm, it creates entries in the rpm repository as it installs each package and builds up a dependency list. So, the version of perl that is installed will be whatever comes with your default OS build.

    If you install an application outside of the rpm repository, for example, if perl is upgraded when cPanel is installed (this is installed from source, not rpm since the vendor does not usually have an rpm distribution for versions of perl) then they become out of sync. You cannot modify the rpm repository after the fact as this is only done when an rpm is installed, not when apps are installed from source distributions.

    There's little you can do about the situation now that they are out of sync - this is one of the major flaws of rpm based OS's. They do have their advantages, though, especially with dependency tracking.

    So, the only option for you now is to remove the ImageMagick rpms and install from source, or to take the more destructive course and remove the source perl installation by removing the relevant directories, updating the rpm based version of perl so that it has all the cPanel required modules (i.e. run /scripts/rpmup) and then you should be able to use the rpm perl modules.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. Installing Image::Magick
    By vicos in forum cPanel and WHM Discussions
    Replies: 26
    Last Post: 02-22-2012, 12:35 PM
  2. Perl installer Image::Magick
    By awk.grep in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-04-2007, 05:49 AM
  3. Image::Magick Perl module installation failure
    By bartek in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-10-2007, 07:26 AM
  4. Installing Image::Magick - errors
    By Marty in forum cPanel and WHM Discussions
    Replies: 14
    Last Post: 03-30-2006, 02:15 PM
  5. Installing Perl Module Template - Please help!
    By paulinjm in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-07-2005, 10:33 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube