Incompatible library version: imagick.so requires version 18.0.0 or later, but libfreetype.6.dylib provides version 16.0.0 in Unknown on line 0

风流意气都作罢 提交于 2019-12-23 16:18:37

问题


I installed imagemagic and imagick successfully (using http://www.php.net/manual/en/imagick.installation.php#94169 steps ) and also put extension=imagick.so. but when i restart apache i am getting following error.

Unable to load dynamic library /Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212/imagick.so

dlopen(/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212/imagick.so,

9): Library not loaded: /usr/local/lib/libfreetype.6.dylib Referenced from:

/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212/imagick.so

Reason: Incompatible library version: imagick.so requires version 18.0.0 or later, but libfreetype.6.dylib provides version 16.0.0 in Unknown on line 0

I am using Mac OSX (10.8.5), php 5.5.3 under mamp

Any help appreciated on how to solve this! Thanks


回答1:


edit file

/Applications/MAMP/Library/bin/envvars

Comment out the following lines:

DYLD_LIBRARY_PATH="/Applications/MAMP/Library/lib:$DYLD_LIBRARY_PATH"
export DYLD_LIBRARY_PATH

reference



来源:https://stackoverflow.com/questions/21311449/incompatible-library-version-imagick-so-requires-version-18-0-0-or-later-but-l

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!