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.

What is the easiest way to install ImageMagick on CentOS?

Discussion in 'General Discussion' started by BianchiDude, Jul 14, 2009.

  1. BianchiDude

    BianchiDude Well-Known Member
    PartnerNOC

    Joined:
    Jul 2, 2005
    Messages:
    619
    Likes Received:
    0
    Trophy Points:
    16
    What is the easiest way to install ImageMagick on CentOS?

    TIA
     
  2. serversignature

    serversignature Well-Known Member

    Joined:
    Nov 26, 2007
    Messages:
    107
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bangalore
    RUN


    yum install ImageMagick

    .
     
  3. logicsupport

    logicsupport Well-Known Member

    Joined:
    Jun 5, 2007
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    16
    How to install imagemagic in cpanel

    In a cpanel server you can install imagemagic very easily using

    /scripts/installimagemagick
     
  4. DomineauX

    DomineauX Well-Known Member
    PartnerNOC

    Joined:
    Apr 12, 2003
    Messages:
    414
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    yum install ImageMagick will work to install very outdated versions (6.0.7 on Cent4 and 6.2.8 on Cent5).

    Using /scripts/installimagemagick will install 6.4.8 which is outdated but only a bit over a year so it is better.

    I have suggested a CentOS RPM to ImageMagick.org and they have replied confirming that it would be useful and easy to provide (since they themselves already build one for their own CentOS servers) and that they will add it to their Binary packages in the next day or two.
     
  5. WiredTree Joe

    WiredTree Joe Well-Known Member
    PartnerNOC

    Joined:
    Dec 13, 2006
    Messages:
    68
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Chicago, IL
    The easiest way is using /scripts/installimagemagick or using an RPM as already stated, but if you require one of the most recent versions a source install is always an option. I had to do this on my personal cPanel/WHM CentOS 5.x server a few weeks ago.

    Use at your own risk!
    Code:
    yum remove ImageMagick
    yum install tcl-devel libpng-devel libjpeg-devel ghostscript-devel bzip2-devel freetype-devel libtiff-devel
    mkdir /root/imagemagick
    cd /root/imagemagick
    wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
    tar xzvf ImageMagick.tar.gz
    cd ImageMagick-*
    ./configure --prefix=/usr/ --with-bzlib=yes --with-fontconfig=yes --with-freetype=yes --with-gslib=yes --with-gvc=yes --with-jpeg=yes --with-jp2=yes --with-png=yes --with-tiff=yes
    make
    make install 
    Test your install

    Code:
    [root@rebirth:~]$ whereis convert
    convert: /usr/bin/convert /usr/man/man1/convert.1 /usr/share/man/man1/convert.1
    [root@rebirth:~]$ convert --version
    Version: ImageMagick 6.6.1-2 2010-04-10 Q16 http://www.imagemagick.org
    Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
    Features: OpenMP 

    You can add in your custom configure options as needed in the configure line above. If you want to "uninstall" your build, you can always run:

    Code:
    cd /root/imagemagick/ImageMagick-*
    make uninstall
    Following the same steps on a x86_64 CentOS 5 server, I ran into some lib issues and they were fixed with the below commands.

    Code:
    cd /usr/lib64
    ln -s ../lib/libMagickCore.so.3 libMagickCore.so.3 
    ln -s ../lib/libMagickWand.so.3 libMagickWand.so.3
    Your mileage may vary. I consider installing from source to be a last resort to get the versions you require when using CentOS/RHL.

    It would be nice to see some official RPM builds of the most recent versions of IM from ImageMagick.org.
     
  6. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    Although this is not "official" release, it worked on some of our client's servers. CentOS 1386 and x86_64: ftp://ftp.imagemagick.org/pub/ImageMagick/linux/CentOS/
     
  7. WiredTree Joe

    WiredTree Joe Well-Known Member
    PartnerNOC

    Joined:
    Dec 13, 2006
    Messages:
    68
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Chicago, IL
  8. DomineauX

    DomineauX Well-Known Member
    PartnerNOC

    Joined:
    Apr 12, 2003
    Messages:
    414
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
  9. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    Looking at the list of supported systems, CentOS v4.x is not there. Since your system is not on the list, try installing from source.

    Thank you WiredTree Joe :)
     
    #9 AndyReed, Apr 13, 2010
    Last edited: Apr 13, 2010
  10. WiredTree Joe

    WiredTree Joe Well-Known Member
    PartnerNOC

    Joined:
    Dec 13, 2006
    Messages:
    68
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Chicago, IL
    I will admit, I have not tried my source install instructions on a CentOS 4.x box. I don't think anyone would run into any issues however.
     
  11. dolay

    dolay Member

    Joined:
    Apr 28, 2004
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    bad ass helper ;)
     
Loading...

Share This Page