-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Package libffi was not found in the pkg-config search path #1603
Comments
Hello, it looks like you're using a globally-installed version of Has |
Nope, Any clues, tips, how to fix this? |
If you want to use a homebrew-managed version of vips then If you'd prefer to use sharp-managed version of vips then |
ok that worked, uninstalling vips via brew. confusing. can you add a warning about this to improve DX? |
At install-time, sharp logs the decisions it's making - here's the salient part of the log from your initial comment:
Errors from node-gyp after this in the install log usually relate to an invalid/corrupt installation of libvips and/or its dependencies, which is what you were seeing. By removing the globally-installed libvips you allowed sharp to make a different decision and download and use its own libvips. Mac-specific installations are at https://sharp.pixelplumbing.com/en/stable/install/#mac-os |
Coincidentally I just ran into this same error on an OS X machine:
and was able to fix it by following the instructions in the error message: export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/local/opt/libffi/lib/pkgconfig" so this was a brew/libffi/pkgconfig problem unrelated to either sharp or libvips. |
Ah good to know. Report this problem to either brew, libffi or pkgconfig somewhere? |
Had this issue today. Resolved it with Development: Why does |
Thank you ! |
Been running into similar issues since using macOS back in 2015 – probably once per year – whenever I try to install sharp in a fresh project. I've always managed to find help here... Thank you! ❤️ |
FYI, from what I've seen, all of the backends I can test (Qt5Agg, macosx, TkAgg, WxAgg) currently have the same behavior (with the exception of WebAgg and nbAgg):
WebAgg does not show an icon at all. nbAgg is specifically for embedding in Jupyter notebook/lab, so showing an icon doesn't make sense. |
It's me again on MacOS. Can't install sharp again. Here the whole output
Any clues?
The text was updated successfully, but these errors were encountered: