1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help to install ImageMagick

Discussion in 'Server Configuration and Hosting' started by Claudio, Dec 15, 2011.

  1. Claudio

    Claudio Well-Known Member

    I want to get work gif avatars on my forum..so I need some help to install all the neccesary modules on CENTOS to make work ImageMagick

    I´ve tried with those instructions:
    http://imagemagick.org/script/install-source.php#unix
    but I can´t select ImageMagick option on XF admin panel :(
     
  2. ChemicalKicks

    ChemicalKicks Well-Known Member

    Did you restart php/Apache?
     
  3. Claudio

    Claudio Well-Known Member

  4. Claudio

    Claudio Well-Known Member

    I´m using APC...could be that?
     
  5. ChemicalKicks

    ChemicalKicks Well-Known Member

    No mate, I managed to get it to work and I'm running APC.

    Let me see if I can find the instructions I used.
     
  6. ChemicalKicks

    ChemicalKicks Well-Known Member

  7. MGSteve

    MGSteve Well-Known Member

    I've installed it via Centos. I presume you have root access, type in 'whereis convert' into the shell and it'll tell you where it is.

    It sometimes installs into /usr/local/bin/ rather than /usr/bin

    i.e.

    [root@vorlon ~]# whereis convert
    convert: /usr/local/bin/convert

    if you type 'convert --version' into the shell you should see something like this:

    [root@vorlon ~]# convert --version
    Version: ImageMagick 6.7.0-8 2011-06-17 Q16 http://www.imagemagick.org
    Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
    Features: OpenMP
     
  8. Claudio

    Claudio Well-Known Member

    I get this:
    Code:
    root@tod [~]# whereis convert
    convert: /usr/bin/convert /usr/local/bin/convert /usr/share/man/man1/convert.1.gz /usr/share/man/man1/convert.1
    
     
  9. ChemicalKicks

    ChemicalKicks Well-Known Member

    Try this then try restarting php/apache

    Code:
    yum install ImageMagick
    yum install ImageMagick-devel
    yum install php-pear
    pecl install imagick
     
  10. Claudio

    Claudio Well-Known Member

    Thanks but after execute yum install ImageMagick I get a message that I have already installed ImageMagick
    Then I keep following instructions but after execute this step:
    pecl install imagick

    I get this error:
    Code:
    WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
    downloading imagick-3.0.1.tgz ...
    Starting to download imagick-3.0.1.tgz (93,920 bytes)
    ..............done: 93,920 bytes
    13 source files, building
    running: phpize
    Configuring for:
    PHP Api Version:        20041225
    Zend Module Api No:      20060613
    Zend Extension Api No:  220060519
    Please provide the prefix of Imagemagick installation [autodetect] :
    building in /var/tmp/pear-build-root/imagick-3.0.1
    running: /root/tmp/pear/imagick/configure --with-imagick
    checking for egrep... grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking for cc... cc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... configure: error: cannot run C compiled programs.
    If you meant to cross compile, use `--host'.
    See `config.log' for more details.
    ERROR: `/root/tmp/pear/imagick/configure --with-imagick' failed
    
     
  11. ChemicalKicks

    ChemicalKicks Well-Known Member

    Did you do "yum install ImageMagick-devel"
     
  12. ChemicalKicks

    ChemicalKicks Well-Known Member

    Check the comments of this http://robshouse.net/page/configure-error-pecl-memcache-ubuntu you're exact problem us described! :)

     
  13. Claudio

    Claudio Well-Known Member

    yes:
    Code:
    root@tod [~]# yum install ImageMagick-devel
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base: mirrors.adams.net
    * extras: mirror.raystedman.net
    * rpmforge: fr2.rpmfind.net
    * update: mirror.raystedman.net
    Excluding Packages in global exclude list
    Finished
    Setting up Install Process
    Package ImageMagick-devel-6.2.8.0-4.el5_5.3.i386 already installed and latest version
    Nothing to do
    
     
  14. Claudio

    Claudio Well-Known Member

    Thank you!

    Steps realized:
    Code:
    yum install ImageMagick
    yum install ImageMagick-devel
    yum install php-pear
    mount -o,remount,rw,exec /var/tmp
    pecl install imagick
    mount -o,remount,rw,noexec /var/tmp
    Thank you both ;)
     
    D.O.A. and jonatan.wb like this.
  15. ChemicalKicks

    ChemicalKicks Well-Known Member

    heh glad it's sorted! :)
     
    jonatan.wb likes this.
  16. Floren

    Floren Well-Known Member

    You don't need the devel or pear packages, that is a crazy setup procedure. The clean and simple way to get ImageMagick working for Xenforo:
    The RPM is available into Redhat5 repo, for now. We are updating soon the Redhat6 repo, once the current projects clear.
     
    gordy likes this.
  17. RoldanLT

    RoldanLT Well-Known Member

    1st: rpm -ivh --nosignature http://rpm.axivo.com/redhat/axivo-release-6-1.noarch.rpm
    2nd: yum --enablerepo=axivo install ImageMagick php-pecl-imagick

    Still imagick is not yet installed?
     
  18. p4guru

    p4guru Well-Known Member

    how you confirming if it is or is not installed ? have you checked phpinfo output ?
     
  19. RoldanLT

    RoldanLT Well-Known Member

    Yes I have check, It's not there.
     
  20. p4guru

    p4guru Well-Known Member

    You're not using Centmin Mod by any chance ? If you are just run menu option #15 to install it although by default ImagicK should already be installed with latest versions of Centmin Mod.
     

Share This Page