Macports Imagemagick Install for PHP

General Tech Bugs & Fixes 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

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?

profilepic.png
manpreet 2 years ago

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.


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.