I am trying to implement micropython on unix, which requires libffi-dev
. I installed in this way brew install libffi-dev
. But it seems that there is no libffi-dev can be found.
Is there any way to install libffi-dev
on Mac os. Thank you.
On Mac OS X you just need:
$ brew install libffi
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With