Skip to content

Instantly share code, notes, and snippets.

@lucianosousa
Last active February 7, 2021 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucianosousa/76f0339876263f281146af3dd7dbe80f to your computer and use it in GitHub Desktop.
Save lucianosousa/76f0339876263f281146af3dd7dbe80f to your computer and use it in GitHub Desktop.
Fixing Symbol not found: _ffi_prep_closure_loc error on OSX Mojave
```
dyld: lazy symbol binding failed: Symbol not found: _ffi_prep_closure_loc
Referenced from: /Users/ls/.gem/ruby/3.0.0/gems/ffi-1.14.2/lib/ffi_c.bundle
Expected in: /usr/lib/libffi.dylib
dyld: Symbol not found: _ffi_prep_closure_loc
Referenced from: /Users/ls/.gem/ruby/3.0.0/gems/ffi-1.14.2/lib/ffi_c.bundle
Expected in: /usr/lib/libffi.dylib
Abort trap: 6
```
$ gem uninstall ffi
$ gem install ffi -- --disable-system-libffi
#Give a try on:
`$ bundle config build.ffi --disable-system-libffi`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment