Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
server-administration:imagick-class-error [2011-05-13 23:49:30] garrett.plasky Approved |
server-administration:imagick-class-error [2011-11-23 22:35:47] garrett.plasky Approved |
||
---|---|---|---|
Line 3: | Line 3: | ||
Some versions of CentOS (including the most recent 5.5) have an issue with a buggy 6.4.8 RPM version of ImageMagick. This version prevents the Imagick PHP class from working properly, and also prevents the extension from being installed via PECL. If you are using the Imagick PHP class on your site, you will see an error something like: | Some versions of CentOS (including the most recent 5.5) have an issue with a buggy 6.4.8 RPM version of ImageMagick. This version prevents the Imagick PHP class from working properly, and also prevents the extension from being installed via PECL. If you are using the Imagick PHP class on your site, you will see an error something like: | ||
- | <code>Fatal error: Class ' | + | <sxh plain>Fatal error: Class ' |
When trying to install via PECL, the error will be: | When trying to install via PECL, the error will be: | ||
Line 17: | Line 17: | ||
Next, we'll install them: | Next, we'll install them: | ||
- | <sxh bash>rpm -Uvh rpm -Uvh ImageMagick-devel-6.6.0.2-8.el5.kb.1.i386.rpm ImageMagick-6.6.0.2-8.el5.kb.1.i386.rpm jasper-libs-1.900.1-7.el5.kb.i386.rpm jasper-devel-1.900.1-7.el5.kb.i386.rpm</ | + | <sxh bash>rpm -Uvh ImageMagick-devel-6.6.0.2-8.el5.kb.1.i386.rpm ImageMagick-6.6.0.2-8.el5.kb.1.i386.rpm jasper-libs-1.900.1-7.el5.kb.i386.rpm jasper-devel-1.900.1-7.el5.kb.i386.rpm</ |
Finally, we re-install the PECL extension and restart the webserver: | Finally, we re-install the PECL extension and restart the webserver: |