1.yum install ImageMagick
2.yum install php-devel (if not installed)
NOTE: skipping step 2 leads to this problem..."ERROR: `phpize' failed".
3.yum install ImageMagick-devel
NOTE: skipping step 3 leads to this problem ... "ERROR: `/tmp/tmppccQA1/imagick-2.2.2/configure --with-imagick' failed"
4. WRONG: pecl install imagick
had problem : PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/imagick.so' - /usr/lib/php/modules/imagick.so: undefined symbol: ClonePixelWand in Unknown on line 0
fixed by uninstalling : pecl uninstall imagick
4.RIGHT : pecl install imagick-2.2.1 (don't just run pecl install imagick, version 2.2.2 doesn't work)
5. echo "extension=imagick.so" > /etc/php.d/imagick.ini (might not be neccessary)
6. vi /etc/php.ini -> add extension=imagick.so
7. /etc/init.d/httpd restart
8.php -m | grep imagick (to check if loaded.)
AND finally it should work! Hope this helps!
No comments:
Post a Comment