Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2002
    Posts
    686
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default ImageMagick wont install

    Got a weird problem on one centos 3.5 box where Image::Magick wont compile.

    heres the output:


    Attempting to install Image::Magick

    Gathering header information file(s) from server(s)
    Server: CentOS-3 - Addons
    Server: CentOS-3 - Base
    Server: CentOS-3 - Extras
    Server: CentOS-3 - Updates
    Finding updated packages
    Downloading needed headers
    No actions to take
    Gathering header information file(s) from server(s)
    Server: CentOS-3 - Addons
    Server: CentOS-3 - Base
    Server: CentOS-3 - Extras
    Server: CentOS-3 - Updates
    Finding updated packages
    Downloading needed headers
    No actions to take
    spawn /scripts/perlinstaller Image::Magick
    Method: Perl Expect
    Fetching CPAN mirrors...Done

    Testing connection speed...(this could take a while)....Done

    Three usable mirrors located

    Mirror Check passed for cpan-sj.viaverio.com (/index.html)

    commit: wrote /usr/lib/perl5/5.8.7/CPAN/Config.pm

    CPAN: Storable loaded ok

    Going to read /home/.cpan/Metadata

    Database was generated on Tue, 04 Oct 2005 00:00:21 GMT

    Running install for module Image::Magick

    Running make for J/JC/JCRISTY/PerlMagick-6.24.tar.gz

    CPAN: Digest::MD5 loaded ok

    CPAN: Compress::Zlib loaded ok

    Checksum for /home/.cpan/sources/authors/id/J/JC/JCRISTY/PerlMagick-6.24.tar.gz ok

    Scanning cache /home/.cpan/build for sizes

    ./PerlMagick-6.24/

    REMOVED SO THE POST FITS

    ./PerlMagick-6.24/Changelog

    Removing previously used /home/.cpan/build/PerlMagick-6.24



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



    Checking if your kit is complete...

    Looks good

    Note (probably harmless): No library found for -ldpstk

    Note (probably harmless): No library found for -ldps

    Note (probably harmless): No library found for -lXext

    Note (probably harmless): No library found for -lXt

    Note (probably harmless): No library found for -lSM

    Note (probably harmless): No library found for -lICE

    Note (probably harmless): No library found for -lX11

    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.7/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.7/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 -O3 -g -Wall -pthread -O2 -DVERSION=\"6.2.4\" -DXS_VERSION=\"6.2.4\" -fpic "-I/usr/lib/perl5/5.8.7/i686-linux/CORE" -DHAVE_CONFIG_H Magick.c

    Magick.xs:63:32: magick/ImageMagick.h: No such file or directory

    Magick.xs:153: syntax error before "MagickRealType"

    Magick.xs:153: warning: no semicolon at end of struct or union

    Magick.xs:160: syntax error before '*' token

    Magick.xs:160: warning: type defaults to `int' in declaration of `image_reference'


    REMOVED SO THE POST FITS


    Magick.xs: In function `boot_Image__Magick':
    Magick.xs:1967: warning: implicit declaration of function `InitializeMagick'
    Magick.xs:1968: warning: implicit declaration of function `SetWarningHandler'
    Magick.xs:1969: warning: implicit declaration of function `SetErrorHandler'
    make: *** [Magick.o] Error 1



    /usr/bin/make -- NOT OK

    Running make install

    make had returned bad status, install seems impossible

    perlmod--Install done
    any ideas how to fix this?

  2. #2
    Member
    Join Date
    Nov 2004
    Posts
    41

    Default

    I am getting the same error. Anybody?

  3. #3
    Member
    Join Date
    Sep 2002
    Posts
    580

    Default

    Same here on 10.8.0-R65

  4. #4
    Member
    Join Date
    Jul 2004
    Posts
    8

    Default

    I also have the same problem. Could somebody help on this

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

    Default

    The CPAN module appears to require that ImageMagick be installed from source. As such, to do so run the following: ( I'm fairly certain the ImageMagick-perl RPM package in centos should suffice however ).

    Code:
    cd /usr/local/src/
    wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
    tar zxvf ImageMagick.tar.gz
    cd ImageMagick-*
    ./configure
    make
    make install
    
    Then install the perl module:
    
    cd PerlMagick
    perl Makefile.PL
    make
    make install
    That should be it. If you now run /scripts/perlinstaller Image::Magick it should tell you that ImageMagick is up to date.
    Last edited by haze; 10-22-2005 at 01:32 AM.
    Beau Henderson

  6. #6
    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

    Yup, I tend to just use the OS vendor rpms as all the RH derivatives seem to have them. IF you do build it manually, make sure you remove any of the OS vendor related rpms first or you'll get your work wiped out next time they're updated.
    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

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

    Default

    Chirpy,

    Correct me if I am wrong, but I believe that by default when installing the ImageMagick RPM, its generally installed to /usr/bin/ whereby when installing from source its installed to /usr/local/bin/. That said, you're probably right in that somewhere.. it might overwrite something which was installed by the rpm, but I'm not 100% myself on this

    Code:
    root@70-191-19-65 [~]# whereis mogrify
    mogrify: /usr/bin/mogrify /usr/local/bin/mogrify /usr/man/man1/mogrify.1 /usr/share/man/man1/mogrify.1.gz
    root@70-191-19-65 [~]# rpm -qif /usr/local/bin/mogrify
    file /usr/local/bin/mogrify is not owned by any package
    root@70-191-19-65 [~]# rpm -qif /usr/bin/mogrify
    Name        : ImageMagick                  Relocations: (not relocatable)
    Version     : 5.5.6                             Vendor: CentOS
    Release     : 15                            Build Date: Thu 02 Jun 2005 08:06:35 AM PDT
    Install Date: Fri 14 Oct 2005 04:09:54 AM PDT      Build Host: sillage.bis.pasteur.fr
    Group       : Applications/Multimedia       Source RPM: ImageMagick-5.5.6-15.src.rpm
    Size        : 9068900                          License: freeware
    Signature   : DSA/SHA1, Thu 02 Jun 2005 08:09:49 AM PDT, Key ID 7049e44d025e513b
    URL         : http://www.imagemagick.org/
    Summary     : An X application for displaying and manipulating images.
    Description :
    ImageMagick(TM) is an image display and manipulation tool for the X
    Window System. ImageMagick can read and write JPEG, TIFF, PNM, GIF,
    and Photo CD image formats. It can resize, rotate, sharpen, color
    reduce, or add special effects to an image, and when finished you can
    either save the completed work in the original format or a different
    one. ImageMagick also includes command line programs for creating
    animated or transparent .gifs, creating composite images, creating
    thumbnail images, and more.
    
    ImageMagick is one of your choices if you need a program to manipulate
    and display images. If you want to develop your own applications
    which use ImageMagick code or APIs, you need to install
    ImageMagick-devel as well.
    I'm not sure if removing the rpm is totally necessary, but then again, if you're installing from source, there's really no point in having the RPM ( and why people bother using an rpm system when .. eh.. thats for another thread ) other than perhaps some users on the system which might have software installed on their system that uses the /usr/bin path. TROUBLE TROUBLE!

    Also, if installing from source, keep in mind that you will need to keep that updated manually when ever a new version is released. If you have many servers this could be fairly daunting if you don't prepackage custom installed software for mass deployment.
    Beau Henderson

Similar Threads & Tags
Similar threads

  1. imagemagick pecl install breaks
    By ceynet in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 09-16-2010, 02:01 AM
  2. Install ImageMagick via WHM / cPanel?
    By mealto in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-12-2009, 04:01 AM
  3. ImageMagick install problem
    By PWSowner in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-14-2007, 12:30 PM
  4. ImageMagick-5.3.8-3 broken, cant install it!
    By sexy_guy in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-18-2003, 02:26 PM
  5. ImageMagick new ver install
    By carperman in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-08-2002, 11:31 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube