php - Imagick missing but extension and module exists -



php - Imagick missing but extension and module exists -

i'm getting next error:

fatal error: class 'imagick' not found in pdfthumbnail.php on line 2

when running

$im = new imagick($_get['pdf'].'[0]');

however if run

$test = system('rpm - qa | grep imagemagick'); echo $test;

i following:

imagemagick-6.2.8.0-4.el5_5.3 imagemagick-devel-6.2.8.0-4.el5_5.3 imagemagick-devel-6.2.8.0-4.el5_5.3 imagemagick-6.2.8.0-4.el5_5.3 imagemagick-6.2.8.0-4.el5_5.3

inside phpinfo can't find section imagemagick module, within php.ini (the 1 listed within phpinfo();, find:

extension=imagick.so

my extension path set extension_dir = "/usr/lib64/php/modules" , within folder get:

dbase.so libmagickcore.so mysqli.so soap.so xsl.so dom.so libmagick++.so mysql.so sw-engine gd.so libmagickwand.so pdo_mysql.so _unused_imagick.so imagick.so libpdf_php.so pdo.so xmlreader.so imap.so mbstring.so pdo_sqlite.so xmlwriter.so

however imagick in white while rest in green.

what else causing problem

i had similar problems getting imagemagick work on os x 10.6.8 / xampp setup. problem turned out various binaries involved not playing nicely because macports not building universal binaries.

this blog post helpful: http://mikepuchol.com/2010/08/26/getting-mamp-1-9-to-work-with-image-magick-imagick-so-and-other-flora/

php imagemagick

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -