Recently I removed the Homebrew completely on my OS X 10.7.4 (because the only reason I was using it was the OpenSSL package and I installed it from scratch into
/usr/localand it worked perfectly so there was no need to keep a large
Then when I started Emacs-25.2.1 (as a precompiled app in
/Applications/Emacs-25.2.app) it gave
Dyld Error Message: Library not loaded: /usr/local/lib/libMagickWand-6.Q16.1.dylib Referenced from: /Applications/Emacs-25.2.app/Contents/MacOS/Emacs Reason: image not found
and the Emacs windows didn't come up.
I've noticed one of the dependencies of Emacs
/usr/local/lib/libMagickWand-6.Q16.1.dylib was symlinking to
/usr/local/Cellar/imagemagick/6.8.7-7/libd/libMagickCore-6.Q16.1.dylib So I've installed
ImageMagick-7.0.8-60 from scratch and rearranged the symlink into this new one and repeated the same for the other Dyld Error causing
MagickCore and finally Emacs started to come up and work fine but it wasn't displaying the jpg and png images.
I've checked the libjpeg dependency path and it is
/usr/local/lib/libjpeg.8.dylib (compatibility version 12.0.0, current version 12.0.0) But the
libjpeg.8.dylib was already available at
/usr/local/lib so I've installed the libjpeg-8c, 8d, 9c and retried but it didn't display any jpeg images. I guess I got stuck at this point.
How to fix this problem? Thanks.
$ otool -L /Applications/Emacs-25.2.app/Contents/MacOS/Emacs /Applications/Emacs-25.2.app/Contents/MacOS/Emacs: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1138.47.0) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0) /usr/local/lib/libjpeg.8.dylib (compatibility version 12.0.0, current version 12.0.0) /usr/local/lib/libMagickWand-6.Q16.1.dylib (compatibility version 2.0.0, current version 2.0.0) /usr/local/lib/libMagickCore-6.Q16.1.dylib (compatibility version 2.0.0, current version 2.0.0) /usr/lib/libxml2.2.dylib (compatibility version 10.0.0, current version 10.3.0) /usr/local/lib/libncurses.5.dylib (compatibility version 5.0.0, current version 5.0.0) /usr/local/lib/libgnutls.30.dylib (compatibility version 37.0.0, current version 37.1.0) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 635.21.0) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 41.0.0) /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 833.25.0)