6

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
linojon
  • 1,052
  • 1
  • 10
  • 19

3 Answers3

17

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

linojon
  • 1,052
  • 1
  • 10
  • 19
  • Had a similar issue. Creating a symlink fixed this for me. But had to locate libtiff file from /opt/local/lib: `sudo ln -s /opt/local/lib/libtiff.5.dylib /usr/local/lib/libtiff.5.dylib` – jisu Dec 06 '14 at 20:39
  • This also works when trying to get the tesseract gem running correctly in ruby. – Brett Bim May 23 '15 at 19:35
1

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
mr rogers
  • 3,200
  • 1
  • 19
  • 31
0

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
Cagri Sarigoz
  • 366
  • 3
  • 7