php5-imagick fails to load

Ryan Schmidt ryandesign at macports.org
Tue Mar 23 00:11:05 PDT 2010


On Mar 22, 2010, at 16:23, Bradley Giesbrecht wrote:

> 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.

Thanks for pointing this out. I revbumped php5-imagick in r65166 to fix this.



More information about the macports-users mailing list