php5-imagick fails to load

Bradley Giesbrecht brad at pixilla.com
Mon Mar 22 14:23:00 PDT 2010


Hi,


I performed a port selfudate followed by port upgrade outdated.

imagick.so fails to load.

port installed php5-imagick
The following ports are currently installed:
  php5-imagick @2.3.0_2 (active)

file /opt/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so
/opt/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so:  
Mach-O bundle ppc

php -m
PHP 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):  
Library not loaded: /opt/local/lib/libMagickWand.2.dylib
  Referenced from: /opt/local/lib/php/extensions/no-debug-non- 
zts-20090626/imagick.so
  Reason: image not found in Unknown on line 0

ls /opt/local/lib/libMagick*
/opt/local/lib/libMagick++.3.dylib	/opt/local/lib/libMagick++.dylib	/ 
opt/local/lib/libMagickCore.3.dylib	/opt/local/lib/ 
libMagickCore.dylib	/opt/local/lib/libMagickWand.3.dylib	/opt/local/ 
lib/libMagickWand.dylib
/opt/local/lib/libMagick++.a		/opt/local/lib/libMagick++.la		/opt/ 
local/lib/libMagickCore.a		/opt/local/lib/libMagickCore.la		/opt/local/ 
lib/libMagickWand.a		/opt/local/lib/libMagickWand.la


Rebuilding php5-imagick appears to have solved my problem.

I'm guessing a newer version of ImageMagick changed the name of  
libMagickWand.2.dylib to libMagickWand.3.dylib.


// Brad


More information about the macports-users mailing list