问题
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
回答1:
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
回答2:
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:
I ran into a similar problem with libpng
library when I tried to use convert
command 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
来源:https://stackoverflow.com/questions/13795469/imagemagick-identify-gives-dyld-library-not-loaded-usr-local-lib-libtiff-3-d