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.

ImageMagick wont install

Discussion in 'General Discussion' started by Snowman30, Oct 4, 2005.

  1. Snowman30

    Snowman30 Well-Known Member
    PartnerNOC

    Joined:
    Apr 7, 2002
    Messages:
    681
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    Got a weird problem on one centos 3.5 box where Image::Magick wont compile.

    heres the output:

    any ideas how to fix this?
     
  2. rapidot

    rapidot Active Member

    Joined:
    Nov 15, 2004
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    I am getting the same error. Anybody?
     
  3. NNNils

    NNNils Well-Known Member

    Joined:
    Sep 17, 2002
    Messages:
    580
    Likes Received:
    0
    Trophy Points:
    16
    Same here on 10.8.0-R65
     
  4. rooshi

    rooshi Member

    Joined:
    Jul 28, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    I also have the same problem. Could somebody help on this
     
  5. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    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.
     
    #5 haze, Oct 22, 2005
    Last edited: Oct 22, 2005
  6. chirpy

    chirpy Well-Known Member

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

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    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.
     
Loading...

Share This Page