imagemagick identify gives “dyld: Library not load

2019-06-18 03:23发布

after brew install imagemagick and brew install ghostscript on osx when i run identify i get:

$ identify
dyld: Library not loaded: /usr/local/lib/libtiff.3.dylib
  Referenced from: /usr/local/bin/identify
  Reason: image not found
Trace/BPT trap: 5

3条回答
放荡不羁爱自由
2楼-- · 2019-06-18 03:32

I ran into the same problem recently on 10.6.8. I had ImageMagick installed (from way back) and then installed freetype and ghostscript and started getting the failure. The fix for me was simply to upgrade ImageMagick, which rebuilt and linked up to the newer libtiff and other libraries.

brew upgrade imagemagick
查看更多
姐就是有狂的资本
3楼-- · 2019-06-18 03:36

I ran into a similar problem with libpng library when I tried to use convertcommand with png files.

I first tried upgrading imagemagick but there were no upgrades available for the current version of brew I had. Updating brew and then upgrading ImageMagick solved the problem.

brew update
brew upgrade imagemagick
查看更多
甜甜的少女心
4楼-- · 2019-06-18 03:53

this fixes it

ln -s /usr/local/Cellar/libtiff/3.9.5/lib/libtiff.3.dylib /usr/local/lib/libtiff.3.dylib

thanks to rlaraujo on this link https://github.com/mxcl/homebrew/issues/12099

查看更多
登录 后发表回答