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 - errors

Discussion in 'General Discussion' started by Marty, Jul 9, 2002.

  1. Marty

    Marty Well-Known Member

    Joined:
    Oct 10, 2001
    Messages:
    630
    Likes Received:
    1
    Trophy Points:
    18
    I have tried to install Image::Magick through WHM and am looking for some help. I know I am missing some things that I need, but hope somebody can help me. Here is the message that I get:
    [quote:ba045c98ba]
    Checking if your kit is complete...
    Looks good
    Note (probably harmless): No library found for -llcms
    Note (probably harmless): No library found for -ljasper
    Note (probably harmless): No library found for -lfpx
    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 -I/usr/lib/perl5/5.6.1/i686-linux -I/usr/lib/perl5/5.6.1 /usr/lib/perl5/5.6.1/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.6.1/ExtUtils/typemap Magick.xs & Magick.xsc && mv Magick.xsc Magick.c
    cc -c -I../ -I.. -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I/usr/include/freetype2 -I/usr/include/libxml2 -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\&5.47\& -DXS_VERSION=\&5.47\& -fpic -I/usr/lib/perl5/5.6.1/i686-linux/CORE -DHAVE_CONFIG_H Magick.c
    Magick.xs:76:24: magick/api.h: No such file or directory
    make: *** [Magick.o] Error 1
    /usr/bin/make -- NOT OK
    Running make install
    make had returned bad status, install seems impossible
    perlmod--Install done
    [/quote:ba045c98ba]

    I realize that I am probably missing some rpm's that I need to install. I have already installed the base ImageMagick rpm. What else do I need here?
     
  2. Marty

    Marty Well-Known Member

    Joined:
    Oct 10, 2001
    Messages:
    630
    Likes Received:
    1
    Trophy Points:
    18
    anybody?
     
  3. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    i had a hell of a time installing this also a while back. Their's a post on here some where by me that might help. I cant remember what i did now but it was a bitch. i tryed to rpm, and compiling it from source and the CPAN module it self. it was a mess.

    is their a test script somewhere that sombody can give me to test to see if image magick is installed correctly. Maybe i'll write a script to make it easyer to install.
     
  4. Marty

    Marty Well-Known Member

    Joined:
    Oct 10, 2001
    Messages:
    630
    Likes Received:
    1
    Trophy Points:
    18
    Shaun,

    Download MoveableType from www.moveabletype.org. There is a file in it called mt-check.cgi that will test to see if the perl module is installed properly.

    I got it installed on my box pretty easily, once I knew what I was doing. I am running the latest build of cpanel on a RH 7.2 box. Here is what I did.

    SSH to box and:

    1. mkdir /home/src
    2. cd /home/src
    3. wget http://www.rge.com/pub/multimedia/imagemagick/ImageMagick-5.4.7-4.tar.gz
    4. tar xvzf ImageMagick-5.4.7-4.tar.gz
    5. cd ImageMagick-5.4.7
    6. ./configure
    7. make
    8. make install
    9. cd PerlMagick
    10. perl Makefile.PL
    11. make
    12. make install

    Worked like a charm for me. Your mileage may vary.
     
  5. avara

    avara Well-Known Member

    Joined:
    Oct 28, 2001
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    I've also been trying to install this, and am still getting a bunch of errors, of which I've pasted a small sample below.


    /usr/local/include/magick/monitor.h:15: `off_t' previously declared here
    /usr/local/include/magick/monitor.h:24: redeclaration of `off_t'
    /usr/local/include/magick/monitor.h:24: `off_t' previously declared here
    Magick.xs: In function `XS_Image__Magick_Mogrify':
    Magick.xs:4308: `__uint8_t' undeclared (first use in this function)
    Magick.xs:4308: parse error before `)'
    Magick.xs:4308: parse error before `0'
    Magick.xs:4308: parse error before `__c'
    Magick.xs:4308: `__c' undeclared (first use in this function)
    Magick.xs:4309: parse error before `)'
    Magick.xs:4309: parse error before `0'
    Magick.xs:4309: parse error before `__c'
    Magick.xs:4396: parse error before `)'
    Magick.xs:4396: parse error before `0'
    Magick.xs:4396: parse error before `__c'
    Magick.xs:5664: too many arguments to function `ProfileImage'
    make: *** [Magick.o] Error 1
    /usr/bin/make -- NOT OK

    Edit:
    I tried that version now, as I was trying an earlier release before. ./configure goes fine, but at make the errors just pile up:

    /usr/include/bits/stat.h:96: parse error before `st_mtime'
    /usr/include/bits/stat.h:96: warning: data definition has no type or storage class
    /usr/include/bits/stat.h:98: parse error before `st_ctime'
    /usr/include/bits/stat.h:98: warning: data definition has no type or storage class

    Gah! :(
     
  6. Annette

    Annette Well-Known Member
    PartnerNOC

    Joined:
    Aug 12, 2001
    Messages:
    445
    Likes Received:
    0
    Trophy Points:
    16
    /scripts/fixheaders and then rerun it - you should be fine.
     
  7. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    ahh yes, i think before when i was trying to isntall it was was trying to use the RPM and perl -MCPAN -e shell. I cant remember cuz it was such a long time ago but i do rember it being a pain for a while. Compiling it from source worked fine though.

    I think last time i spent most of my time trying to compile the perl source that cpan grabed :p
     
  8. avara

    avara Well-Known Member

    Joined:
    Oct 28, 2001
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    [quote:07ee1633ed][i:07ee1633ed]Originally posted by Annette[/i:07ee1633ed]

    /scripts/fixheaders and then rerun it - you should be fine.[/quote:07ee1633ed]

    I only ran fixheaders a few days ago, so I can't image it's that. I will still try that again though, and let you know how it goes. :)

    Edit: Yep, that actually worked. I can't believe I didn't try this first... Now I wonder why headers break so often on CPanel servers?
     
  9. myusername

    myusername Well-Known Member
    PartnerNOC

    Joined:
    Mar 6, 2003
    Messages:
    691
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    chown -R us.*yourbase*
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    What does scripts/fixheaders do?

    I cant get it working properly for Movable type after cpanels recent perl issue. Perhaps i need to uninstall the ones whm installed and try it manually. How can I uninstall it, or is it even needed? Would a manual install overwrite whatevr cpanel has done?
     
  10. yuga

    yuga Active Member

    Joined:
    Jan 8, 2004
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Intalling from WHM, I get these when installing Image::Magick:

    mkdir: cannot create directory `/usr/include/magick': File exists
    make[2]: *** [install-includeHEADERS] Error 1
    make[2]: Leaving directory `/home/cpmagickbuild/magick/ImageMagick-5.5.1/magick'
    make[1]: *** [install-am] Error 2
    make[1]: Leaving directory `/home/cpmagickbuild/magick/ImageMagick-5.5.1/magick'
    make: *** [install-recursive] Error 1

    There's a list of Perl modules from the clien's CPanel and I could not still see Image::Magick on the list.

    How do I uninstall it so that a fresh install from WHM would work?
     
  11. Finkinstein

    Finkinstein Well-Known Member

    Joined:
    Mar 21, 2003
    Messages:
    131
    Likes Received:
    0
    Trophy Points:
    16
    Same issue as above. Bumping. ;)
     
  12. Daemon1

    Daemon1 Well-Known Member

    Joined:
    Nov 26, 2003
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    I have this problem to, how does one uninstall Image Magick that has been installed via WHM? I need to remove this version in order to install it manually, thanks.
     
  13. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    rpm -qa | grep magick

    should tell you which ImageMagick rpm is installed. Then just copy and paste it after rpm -e:

    rpm -e rpm_to_remove
     
  14. Daemon1

    Daemon1 Well-Known Member

    Joined:
    Nov 26, 2003
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    That done the trick! Thanks!
     
  15. gemby

    gemby Well-Known Member
    PartnerNOC

    Joined:
    Feb 16, 2002
    Messages:
    182
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Pula, Croatia
    cPanel Access Level:
    DataCenter Provider
    Since none of above works for me, i solved it like this...

    I installed ImageMagick ImageMagick-devel from rpm via whm i uninstalled ImageMagick-perl

    And then i builded perl module from source....

    cd /usr/src
    wget http://search.cpan.org/CPAN/authors/id/J/JC/JCRISTY/PerlMagick-5.57.tar.gz
    tar -xvzf PerlMagick-5.57.tar.gz
    cd PerlMagick-5.57
    perl Makefile.PL
    make
    make install

    And Image::Magick finaly works!
     
    #15 gemby, Mar 30, 2006
    Last edited: Mar 30, 2006
Loading...

Share This Page