php error: Class 'Imagick' not found

前端 未结 8 1009
夕颜
夕颜 2020-12-08 13:20

I am getting the error \"Class \'Imagick\' not found\". Somehow I need to make this library accessible to php. I am using Php 5.2.6 on Fedora 8. my php_info has no mention

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-08 13:25

    From: http://news.ycombinator.com/item?id=1726074

    For RHEL-based i386 distributions:

    yum install ImageMagick.i386
    yum install ImageMagick-devel.i386
    pecl install imagick
    echo "extension=imagick.so" > /etc/php.d/imagick.ini
    service httpd restart
    

    This may also work on other i386 distributions using yum package manager. For x86_64, just replace .i386 with .x86_64

提交回复
热议问题