12
votes

I keep getting this error:

emacs dyld: Library not loaded: /usr/local/opt/libffi/lib/libffi.6.dylib Referenced from: /usr/local/opt/p11-kit/lib/libp11-kit.0.dylib Reason: image not found Abort trap: 6

I tried to reinstall with brew reinstall emacs, brew install libffi, brew link libffi. Nothing helps.

2
These days I'm using railiwaycat's brew for the emacs mac port, which is working fine under Catalina. Have you tried removing emacs and instlaling using the binary cask (as suggested in the emacs source recipe info?)Tim X
I had the same issue, and brew upgrade emacs resolved it.escapecharacter
How did you solved it? Emacs was working just fine, but it crashed. Now I get that error.edmz
A brew reinstall emacs-mac fixed it.edmz

2 Answers

14
votes

I had a similar problem after upgrading to macOS Catalina 10.15.4. I got this error:

$ emacs file.txt
dyld: Library not loaded: /usr/local/opt/libffi/lib/libffi.6.dylib
  Referenced from: /usr/local/opt/p11-kit/lib/libp11-kit.0.dylib
  Reason: image not found

Reinstalling emacs with brew solved the problem.

brew reinstall emacs
6
votes

I had a similar problem installing from source,

brew reinstall p11-kit

was the fix for me