So I read this article on how to install Imagemagick with MAMP, and did exactly how it said, ( sudo port install Imagemagick
, everything installed okay, then change the envvars file), yet I still get this error when trying to run a script that uses it:
Fatal error: Class 'Imagick' not found in /Applications/MAMP/htroots/active/includes/images.php on line 19
Does anyone have any idea why this is working for seemingly everyone except me?
HI,
This looks like the Imagick extension is not loaded by PHP.
If you create a php script that only contains this :
<?php
phpinfo();
?>
Do you get anything (like an "imagick" section) mentionning Image magick in the output ?
If not (that's probably the case, considering the error you're gettin) , Image Magick extension probably isn't loaded.
Two ideas, now
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.