How to install libffi-dev on Mac OS X
Error:
Library not loaded: /usr/local/opt/libffi/lib/libffi.7.dylib
The following worked (it’s not an ln -s
but it did the trick):
sudo mkdir /usr/local/opt/libffi
sudo mkdir /usr/local/opt/libffi/lib
sudo cp /usr/lib/libffi.dylib /usr/local/opt/libffi/lib/libffi.7.dylib
Turns out Xcode already installs a library, it’s just not in the right spot.
On Mac OS X you just need:
$ brew install libffi