Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

How can I download and install latest version of imagick on centos 5.8 64bit using bash for php 5.4.

>yum info php
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.ellogroup.com
 * epel: mirror01.th.ifl.net
 * extras: mirror.ellogroup.com
 * updates: mirror.ellogroup.com
Installed Packages
Name       : php
Arch       : x86_64
Version    : 5.4.3
Release    : 1.el5.remi
Size       : 8.8 M
Repo       : installed
Summary    : The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
URL        : http://www.php.net/
License    : PHP
Description: PHP is an HTML-embedded scripting language. PHP attempts to make it
           : easy for developers to write dynamically generated webpages. PHP also
           : offers built-in database integration for several commercial and
           : non-commercial database management systems, so writing a
           : database-enabled webpage with PHP is fairly simple. The most common
           : use of PHP coding is probably as a replacement for CGI scripts.
           :
           : The php package contains the module which adds support for the PHP
           : language to Apache HTTP Server.
share|improve this question

2 Answers 2

up vote 1 down vote accepted

Do you have a specific version requirement for ImageMagick?

ImageMagick is part of the distribution, so yum install ImageMagick.x86_64 will download ImageMagick.
If you have php 5.4, that's not part of CentOS 5.8, so check to see where that came from with yum info php.

To install PHP support,

yum install ImageMagick
yum install ImageMagick-devel
pecl install imagick
share|improve this answer
    
Thanks for your help. i have updated the question above. –  user57221 Jun 12 '12 at 14:22
    
Your php is from the REMI repository. Try running the yum install ImageMagick to see if it works. If not, see if there's a corresponding package in that repository. –  ewwhite Jun 12 '12 at 15:12
    
its seems install correctly. but i can't find any "so" file so that i can configure php.ini file... convert -h Version: ImageMagick 6.2.8 05/07/12 Q16 file:/usr/share/ImageMagick-6.2.8/doc/index.html Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC –  user57221 Jun 12 '12 at 15:50
    
See my updated answer. –  ewwhite Jun 12 '12 at 16:01
    
while runing last command pecl install imagick i am geting following error running: phpize Can't find PHP headers in /usr/include/php The php-devel package is required for use of this command. ERROR: `phpize' failed –  user57221 Jun 12 '12 at 16:15
yum install ImageMagick
yum install ImageMagick-devel
yum --enablerepo=remi-test install php-devel
yum --enablerepo=remi install ImageMagick2
yum --enablerepo=remi-test install php-pecl-imagick

pkgs.org This is excellent site to find any package and installing it.

share|improve this answer
    
I used above commands to install Imagick imagemagick on centos 5.8 for php 5.4 –  user57221 Jun 13 '12 at 7:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.