-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dyld: Library not loaded: /usr/local/opt/libffi/lib/libffi.6.dylib #7
Comments
@Jesus89 do you have an updated toolchain? |
Hi @ivankravets! The toolchain is the same. You need to install I use |
Do you need header files of |
Yep, can confirm, same issue here. Solved with |
In my case linking libffi (which was already installed, but unlinked) fixed the issue |
or you can export variables to determine the libraries libffi is keg-only, which means it was not symlinked into /usr/local, For compilers to find libffi you may need to set: For pkg-config to find libffi you may need to set: |
@hqms what is your macOS version? Do you use the latest version of dev/platform? |
I'm running macOS Mojave, 10.14.2
And then, set the env vars in my .bash_profile as indicated above:
That worked 👍 |
I got it working after a re-install of libffi, without changing my env vars. I got this message about Brew refusing to link macOS-provided software on the way but all was well...
Seems to work!
|
|
In my case I had installed both libffi 3.2.1 and libffi 3.3, then I switched from 3.3 back to 3.2.1 like so:
|
As of today,
I fixed the issue by running:
Notice however that when libffi is installed through hombrew (i.e. |
I ended up fixing it by downgrading libffi using this guide: |
yeah man it's just a different version libffi.6.dylib vs libffi.7.dylib |
This will do the trick
then try |
Yes, that works!!!! thanks. |
tyyy |
Thank you very much indeed! Your suggestion |
I fixed it this way on macos:
|
That magically works! Thank you! |
|
For me this error was being thrown when running pod install on a Flutter project. I needed to gem install a newer version of ffi. |
Updating For compilers to find libffi you may need to set: For pkg-config to find libffi you may need to set: ==> Summary .......... ==> gnutls |
same issue but no this lib, I am using rails in mac m1. already done
fixed with this:
thanks the above answer |
check the libffi path.
this works for me. |
some brew install upgraded my
My system: MacOS Mojave
was able to fix it with:
in other words I linked |
thanks @ilessing, this also worked for me! |
This helped me use my old |
Note For M1 (Apple Silicon) Chips:
|
macOS 12.1 Monterey cd /usr/local/opt/libffi/lib |
@dragon-yuan solution works for Monterey. In my case, I was using python 3.7 and it was requiring libffi.7.dylib. So, i created a soft link for that.
|
I've tried every other solutions but only this one worked for My M1 Mac. |
Faced the same issue. In my case libffi.6.dylib wasn't loading. Seems that some other library tries to load a direct version of ffilib instead of its general symlink. I only had libffi.8.dylib version:
So I had to make a copy of lib and rename in to 6, and made a 7 copy as well, just in case. After that everything was fixed and my software started working:
Hope it helps someone |
fixed this for me: |
I love you dude, nothing works besides your method. |
裴雪琴已收到,会尽快回复
|
macOS
The text was updated successfully, but these errors were encountered: