ImageMagick / GhostScript - dyld: library not loaded: /usr/local/lib/libjbig2dec.0.dylib

When I run a command convert file.pdfor gsin a terminal, I get the following error:

dyld: Library not loaded: /usr/local/lib/libjbig2dec.0.dylib
  Referenced from: /usr/local/bin/gs
  Reason: image not found

I installed imagemagick and ghostscript using homebrew:

brew install imagemagick
brew install gs

I tried solutions on related issues like reinstalling, switching, etc., but I just can't get it to work.

I also tried:

brew uninstall libtool
brew install libtool --universal
brew unlink libtool && brew link libtool --force

Homebrew, libtool, imagemagick and ghostscript are all up to date, and I am running the latest version of Mavericks.

Any ideas on how to fix this?

+4
source share
2 answers

Finally, I solved the problem with a surprisingly simple solution:

  • brew install jbig2dec, Warning: jbig2dec-0.11 already installed.

  • , : brew link jbig2dec, Warning: Already linked: /usr/local/Cellar/jbig2dec/0.11

  • brew unlink jbig2dec && brew link jbig2dec, .

! GhostScript .

+6

Ghostscript ( , ). , JBIG2dec. , 2 :

1) Jbig2dec ( jbig2dec ghostscript, ). , , , .

2) Ghostscript , .

0

Source: https://habr.com/ru/post/1548018/


All Articles