ImageMagick, php en Centos 5

Revisar que tenemos instalados los siguientes paquetes:

php-pear
php-devel
ImageMagick
ImageMagick-devel
gcc

A continuación hacemos:

pecl install imagick
echo “extension=imagick.so” > /etc/php.d/imagick.ini
/etc/init.d/httpd restart

COmprobamos si todo esta en su sitio:

php -m | grep imagick

This entry was posted in centos and tagged . Bookmark the permalink.

2 Responses to ImageMagick, php en Centos 5

  1. si subis de version puede pasaros lo siguiente

    # rpm -Uvh ImageMagick-6.7.1-0.x86_64.rpm
    error: Failed dependencies:
    libltdl.so.3()(64bit) is needed by ImageMagick-6.7.1-0.x86_64

    instalais el paquete qu eindico y adelante

    [root@hn29 ~]# yum install libtool-ltdl
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base: sunsite.rediris.es
    * extras: sunsite.rediris.es
    * updates: sunsite.rediris.es
    Excluding Packages in global exclude list
    Finished
    Setting up Install Process
    Resolving Dependencies
    –> Running transaction check
    —> Package libtool-ltdl.i386 0:1.5.22-7.el5_4 set to be updated
    —> Package libtool-ltdl.x86_64 0:1.5.22-7.el5_4 set to be updated
    –> Finished Dependency Resolution

    Dependencies Resolved

    ===============================================================================================================
    Package Arch Version Repository Size
    ===============================================================================================================
    Installing:
    libtool-ltdl i386 1.5.22-7.el5_4 base 37 k
    libtool-ltdl x86_64 1.5.22-7.el5_4 base 38 k

    Transaction Summary
    ===============================================================================================================
    Install 2 Package(s)
    Upgrade 0 Package(s)

    Total download size: 75 k
    Is this ok [y/N]: y
    Downloading Packages:
    (1/2): libtool-ltdl-1.5.22-7.el5_4.i386.rpm | 37 kB 00:03
    (2/2): libtool-ltdl-1.5.22-7.el5_4.x86_64.rpm | 38 kB 00:03
    —————————————————————————————————————
    Total 10 kB/s | 75 kB 00:07
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Installing : libtool-ltdl 1/2
    Installing : libtool-ltdl 2/2

    Installed:
    libtool-ltdl.i386 0:1.5.22-7.el5_4 libtool-ltdl.x86_64 0:1.5.22-7.el5_4

    Complete!
    [root@hn29 ~]# rpm -Uvh ImageMagick-6.7.1-0.x86_64.rpm
    Preparing… ########################################### [100%]
    1:ImageMagick ########################################### [100%]
    [root@hn29 ~]#

  2. JUlio says:

    Hola segui los pasos tal como los describes pero me sale esto al llegar a la instruccion [root@localhost ~]# pecl install imagick
    bash: pecl: command not found

    ayuda por favor necesito instaalr para poder manejar fotos en elgg

Leave a Reply

Your email address will not be published. Required fields are marked *