我在哪里可以获得MAMP上ImageMagick的libfreetype.6.dylib版本16.0.0 [英] Where can I get version 16.0.0 of libfreetype.6.dylib for ImageMagick on MAMP
问题描述
在MAMP下运行imagemagick时,我收到错误消息:
When running imagemagick under MAMP I get the error message:
command output :"dyld: Library not loaded: /opt/local/lib/libfreetype.6.dylib
Referenced from: /Applications/MAMP/bin/ImageMagick/ImageMagick-6.7.9/bin/convert
Reason: Incompatible library version: convert requires version 16.0.0 or later, but libfreetype.6.dylib provides version 15.0.0"
我到处搜索我可以想到但无法找到解决方案。我看到的一个帖子建议在envvars中注释掉DYLD_LIBRARY_PATH,但这没有任何区别。
I have searched everywhere I can think of but can't find a solution to this. One posting I saw suggested commenting out the DYLD_LIBRARY_PATH in envvars but this did not make any difference.
推荐答案
想出来。我跑了:
$ locate libfreetype.6.dylib
并发现该dylib有多个版本,包括/ opt / local / lib中的一个版本,其中macports安装了imagemagick。我将该版本复制到安装它的MAMP中的位置并解决了问题。
and discovered that there are multiple version of that dylib including a version in /opt/local/lib where macports installs imagemagick. I copied that version to the location in MAMP where it was installed and it solved the issue.
$ cp /opt/local/lib/libfreetype.6.dylib /Applications/MAMP/Library/lib/
确保你做了一个在复制之前备份MAMP版本以防万一出错。
Make sure you make a backup of the MAMP version before copying over it just in case something goes wrong.
这篇关于我在哪里可以获得MAMP上ImageMagick的libfreetype.6.dylib版本16.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!