Homebrew-emacs-plus: Unable to load Emacs after upgrading imagemagick

Created on 12 Dec 2016  路  7Comments  路  Source: d12frosted/homebrew-emacs-plus

I'm not sure how useful this is, or if I just ran into an issue with my setup. But thought I'd share incase it's helpful or a bug. I ran brew upgrade this morning, which upgraded imagemagick from 6.9.6-7 -> 6.9.6-8. After that emacs failed to launch with the following crash report:

Process:               Emacs [7407]
Path:                  /usr/local/Cellar/emacs-plus/25.1/Emacs.app/Contents/MacOS/Emacs
Identifier:            org.gnu.Emacs
Version:               Version 25.1 (9.0)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Emacs [7407]
User ID:               501

Date/Time:             2016-12-12 14:17:21.384 -0700
OS Version:            Mac OS X 10.12.1 (16B2555)
Report Version:        12
Anonymous UUID:        F3F7193A-368B-DA41-54C0-C1DCC1F7E8B3

Sleep/Wake UUID:       49DDE676-7039-45BB-9F59-CCBCB37BA280

Time Awake Since Boot: 12000 seconds
Time Since Wake:       10000 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: /usr/local/opt/imagemagick/lib/libMagickWand-6.Q16.2.dylib
  Referenced from: /usr/local/Cellar/emacs-plus/25.1/Emacs.app/Contents/MacOS/Emacs
  Reason: image not found

Binary Images:
       0x100000000 -        0x1001d0ff3 +org.gnu.Emacs (Version 25.1 - 9.0) <19B9DC42-8259-32E9-9A4F-EA65990A85CF> /usr/local/Cellar/emacs-plus/25.1/Emacs.app/Contents/MacOS/Emacs
       0x10062f000 -        0x10065bfff +libjpeg.8.dylib (0) <7A528846-854A-370E-AE9A-EEA0842EEC9C> /usr/local/lib/libjpeg.8.dylib
       0x100662000 -        0x10068affb +librsvg-2.2.dylib (0) <D9411CA8-358E-328A-A318-2A3091F8DE4F> /usr/local/opt/librsvg/lib/librsvg-2.2.dylib
       0x100698000 -        0x100794ff3 +libgio-2.0.0.dylib (0) <2DBF7ED7-3FCE-38D0-85A2-7278000C95EA> /usr/local/opt/glib/lib/libgio-2.0.0.dylib
       0x100802000 -        0x100818ff3 +libgdk_pixbuf-2.0.0.dylib (0) <924C11BE-3CD7-37B5-B36B-A4273E5BEA75> /usr/local/opt/gdk-pixbuf/lib/libgdk_pixbuf-2.0.0.dylib
       0x100822000 -        0x100853ffb +libgobject-2.0.0.dylib (0) <E9890BF9-9560-398D-B91C-2F37BED483CB> /usr/local/opt/glib/lib/libgobject-2.0.0.dylib
       0x100866000 -        0x10092fffb +libglib-2.0.0.dylib (0) <ED97756D-A429-3762-BF2D-0F8EE9493CD1> /usr/local/opt/glib/lib/libglib-2.0.0.dylib
       0x100954000 -        0x10095cff3 +libintl.8.dylib (0) <89A49B65-40E2-340A-A6B3-B344F7AEEB32> /usr/local/opt/gettext/lib/libintl.8.dylib
       0x100961000 -        0x100a09ff3 +libcairo.2.dylib (0) <67E1756D-1B98-3273-946E-08FF7D98F991> /usr/local/opt/cairo/lib/libcairo.2.dylib
       0x111753000 -        0x111790287  dyld (421.2) <13A9466A-2576-3ABB-AD9D-D6BC16439B8F> /usr/lib/dyld
    0x7fffa2f65000 -     0x7fffa3c45ff3  com.apple.AppKit (6.9 - 1504.60) <5DA1E013-575C-34D5-A028-1639EB7B0040> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x7fffa725b000 -     0x7fffa72f0ff7  com.apple.framework.IOKit (2.0.2 - 1324.21.1) <EEFE7FF0-CE41-326A-A571-8AA0B2E89271> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x7fffb8e58000 -     0x7fffb8e59ff3  libSystem.B.dylib (1238) <CFC3669C-FB44-3A51-8815-1E84A168F3C5> /usr/lib/libSystem.B.dylib

Model: MacBookPro11,1, BootROM MBP111.0138.B17, 2 processors, Intel Core i5, 2.6 GHz, 8 GB, SMC 2.16f68
Graphics: Intel Iris, Intel Iris, Built-In
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x02FE, -
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x02FE, -

Re-installing/building from source fixed things:

  • brew uninstall emacs-plus
  • brew install emacs-plus
  • brew linkapps emacs-plus not sure if this is necessary
wiki

Most helpful comment

+1
brew reinstall emacs-plus fixed.

Due to https://github.com/Homebrew/homebrew-core/pull/7775

All 7 comments

+1
brew reinstall emacs-plus fixed.

Due to https://github.com/Homebrew/homebrew-core/pull/7775

@rudedogg and @halfcrazy
Thanks for the info. Probably I should add a note to readme file regarding this issue.

@rudedogg brew linkapps emacs-plus is optional 馃樃

I am very late to the party, but anyways. Thanks for the hint guys!

Just ran into this issue myself. brew upgrade emacs-plus from 24.x to 25.x version does not fix the problem, incidentally. brew remove emacs-plus and brew uninstall --force imagemagick then reinstalling emacs seems to work.

I am facing with this: what should I do? thank you.

$ brew reinstall emacs-plus
Error: No available formula with the name "emacs-plus"

@avatar-lavventura please try to tap d12frosted/emacs-plus before calling reinstall.

$ brew tap d12frosted/emacs-plus

@rudedogg
After doing: brew reinstall emacs-plus still I am facing with the same error :( @d12frosted

[~]$ emacs --version
dyld: Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.8.dylib
  Referenced from: /Applications/Emacs.app/Contents/MacOS/Emacs
  Reason: image not found
[1]    53203 trace trap  /Applications/Emacs.app/Contents/MacOS/Emacs -nw --version

[~]$ /Applications/Emacs.app/Contents/MacOS/Emacs
dyld: Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.8.dylib
  Referenced from: /Applications/Emacs.app/Contents/MacOS/Emacs
  Reason: image not found
[1]    53262 trace trap  /Applications/Emacs.app/Contents/MacOS/Emacs

This fixed my problem:

brew uninstall emacs
brew cleanup
brew doctor
brew install emacs --with-cocoa --with-gnutls --with-rsvg --with-imagemagick
brew linkapps emacs
Was this page helpful?
0 / 5 - 0 ratings