Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install Imagick for PHP via Macports and the PECL extension, based on the guide here:

sudo port install ImageMagick

sudo pecl install imagick

I entered the opt/local path and setup my php.ini file.

However when I start PHP I get the error:

Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so' - dlopen(/opt/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so, 9): image not found in Unknown on line 0

I've searched for the imagick.so file and am unable to locate it anywhere.

Any ideas?

share|improve this question

My bad: After selfupdating macports and reinstalling: I found the imagick.so in the location:

/usr/lib/php/extensions/no-debug-non-zts-20090626/imagick.so

So I created a symlink to this in my macports directory:

/opt/local/lib/php/extensions/no-debug-non-zts-20090626

Restarted apache and it seems to load now.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .