Package libffi was not found in the pkg-config search path
See original GitHub issueIt’s me again on MacOS. Can’t install sharp again. Here the whole output
error /Users/michael-heuberger/code/videomail.io/node_modules/sharp: Command failed.
Exit code: 1
Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
Arguments:
Directory: /Users/michael-heuberger/code/videomail.io/node_modules/sharp
Output:
info sharp Detected globally-installed libvips v8.7.4
info sharp Building from source via node-gyp
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@8.12.0 | darwin | x64
gyp info spawn /usr/bin/python
gyp info spawn args [ '/Users/michael-heuberger/.nvm/versions/node/v8.12.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/michael-heuberger/code/videomail.io/node_modules/sharp/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/michael-heuberger/.nvm/versions/node/v8.12.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/michael-heuberger/.node-gyp/8.12.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/michael-heuberger/.node-gyp/8.12.0',
gyp info spawn args '-Dnode_gyp_dir=/Users/michael-heuberger/.nvm/versions/node/v8.12.0/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/michael-heuberger/.node-gyp/8.12.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/michael-heuberger/code/videomail.io/node_modules/sharp',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libffi', required by 'gobject-2.0', not found
gyp: Call to 'PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.13:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig" pkg-config --cflags-only-I vips-cpp vips glib-2.0 | sed s\/-I//g' returned exit status 0 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/Users/michael-heuberger/.nvm/versions/node/v8.12.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/Users/michael-heuberger/.nvm/versions/node/v8.12.0/bin/node" "/Users/michael-heuberger/.nvm/versions/node/v8.12.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
Any clues?
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Package libffi was not found in the pkg-config search path ...
You need the libffi-dev package. – jordanm · Hi, I already have the package installed inspite of which i am getting this error....
Read more >Package libffi was not found while upgrading to Reviewboard ...
Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc'
Read more >Getting error “No package 'libffi' found” when installing python ...
Best Solution. It seems the main problem is this: Package libffi was not found in the pkg-config search path. Perhaps you ...
Read more >Python SDK install issue - AlgoSDK - Algorand Forum
I was trying to install Python SDK on Raspberry Pi OS (64bit) and I'm getting the following errors: $ pip3 install py-algorand-sdk Looking ......
Read more >No package 'libffi' found in Homebrew Virtual Environment
Then within the virtualenv ran export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.0.13/lib/pkgconfig/ (the path to libffi.pc ). Confirmed with ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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:
so this was a brew/libffi/pkgconfig problem unrelated to either sharp or libvips.
Thank you !