Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs stop working in Mac OSX Catalina. How to fix?

Tags:

emacs

macos

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.

like image 862
user1615898 Avatar asked Jan 03 '20 16:01

user1615898


3 Answers

Same problem but different issues:

dyld[5893]: Library not loaded: /usr/local/opt/libffi/lib/libffi.7.dylib
  Referenced from: /usr/local/Cellar/[email protected]/7.4.23/bin/php
  Reason: tried: '/usr/local/opt/libffi/lib/libffi.7.dylib' (no such file), '/usr/local/lib/libffi.7.dylib' (no such file), '/usr/lib/libffi.7.dylib' (no such file), '/usr/local/Cellar/libffi/3.4.2/lib/libffi.7.dylib' (no such file), '/usr/local/lib/libffi.7.dylib' (no such file), '/usr/lib/libffi.7.dylib' (no such file)

It works for me:

brew reinstall libffi
like image 195
Elbo Shindi Pangestu Avatar answered Oct 19 '22 10:10

Elbo Shindi Pangestu


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
like image 17
PythonJin Avatar answered Oct 19 '22 12:10

PythonJin


I had a similar problem installing from source,

brew reinstall p11-kit

was the fix for me

like image 9
rgiar Avatar answered Oct 19 '22 10:10

rgiar