views:

2321

answers:

3

I'm running OSX Leopard with MAMP (a sandbox consisting of Apache/MySQL/PHP). I installed ImageMagick using MacPorts by following this tutorial: http://www.brybot.ca/archives/getting-imagemagick-and-more-to-work-with-mamp-on-os-x/

Then I added extension=imagick.so to the php.ini But PHP won't recognize it. It keeps telling me:

Fatal error: Class 'imagick' not found

Any idea how to fix this?

A: 

(Is case php case-sensitive? If I google around a bit, it's Imagick with a capital i.) Is it enough to download image-magick? If I read this correctly, you need a php wrapper for image-magick also.

Stijn Sanders
+1  A: 

You may need to follow the macports installation instructions for adding /opt/local and /opt/local/bin to your PATH variable.

If you've already done that, then find out where MacPorts has put the imagemagic library and copy it to your PHP installation's extension dir (or create a link from your extension dir to the file).

By default, MacPorts will compile and install things to work with other MacPorts libraries, so when compiling to work with non-MacPorts libraries, you may need to move files around and tweak paths a bit.

Andru
A: 

A french tuto here

http://eddy.martignier.ch/?p=13