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.

Installing Image::magick Perl module

Discussion in 'General Discussion' started by EMS, May 27, 2005.

  1. EMS

    EMS BANNED

    Joined:
    May 10, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    0
    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. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    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.
     
  3. EMS

    EMS BANNED

    Joined:
    May 10, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    0
    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. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    The rpm for the perl ImageMagick module is called ImageMagick-perl
     
  5. EMS

    EMS BANNED

    Joined:
    May 10, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    0
    Yes. As mentioned above - I've installed this.

    I have ...

    ImageMagick.i386
    ImageMagick-devel.i386
    Imagemagick-perl.i386
     
    #5 EMS, May 28, 2005
    Last edited: May 28, 2005
  6. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    What do you get with "perl -v" from command line ?
     
  7. EMS

    EMS BANNED

    Joined:
    May 10, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    0
    The perl version is 5.8.6
     
  8. EMS

    EMS BANNED

    Joined:
    May 10, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    0
    Anyone else have any ideas ?

    Its FC3
     
  9. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    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.
     
  10. EMS

    EMS BANNED

    Joined:
    May 10, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    0
    So the point in providing them inside whm is what ?
     
  11. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    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.
     
  12. EMS

    EMS BANNED

    Joined:
    May 10, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    0
    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. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    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.
     
Loading...

Share This Page