Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Install fails: "Package libsecret-1 was not found in the pkg-config search path" #69

Closed
luixxiul opened this issue Aug 1, 2017 · 4 comments

Comments

@luixxiul
Copy link

luixxiul commented Aug 1, 2017

Installing keytar@4.0.4 fails due to the error:

https://travis-ci.org/brave/browser-laptop/jobs/259720746#L957

> keytar@4.0.4 install /home/travis/build/brave/browser-laptop/node_modules/keytar
> node-gyp rebuild
Package libsecret-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsecret-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libsecret-1' found
gyp: Call to 'pkg-config --libs-only-l libsecret-1' returned exit status 1 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 (/home/travis/.nvm/versions/node/v8.2.1/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16)
gyp ERR! stack     at emitTwo (events.js:125:13)
gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.4.0-83-generic
gyp ERR! command "/home/travis/.nvm/versions/node/v8.2.1/bin/node" "/home/travis/.nvm/versions/node/v8.2.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/travis/build/brave/browser-laptop/node_modules/keytar
gyp ERR! node -v v8.2.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR!m not ok 
npm WARN ajv-keywords@2.1.0 requires a peer of ajv@>=5.0.0 but none was installed.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-win@2.1.0 (node_modules/7zip-bin-win):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-win@2.1.0: wanted {"os":"win32","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-mac@1.0.1 (node_modules/7zip-bin-mac):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-mac@1.0.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! keytar@4.0.4 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the keytar@4.0.4 install script.
npm ERR!m This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/travis/.npm/_logs/2017-08-01T11_01_00_160Z-debug.log

Any hint on the error? Thanks!

@winstliu
Copy link
Contributor

winstliu commented Aug 1, 2017

Do you have libsecret-1 installed? See the installation instructions.

@luixxiul
Copy link
Author

luixxiul commented Aug 2, 2017

Oh, I didn't notice that. Sorry!

@luixxiul luixxiul closed this as completed Aug 2, 2017
@LinuxDevice
Copy link

On Fedora 27, with these installed, the error still shows up:

libsecret-0.18.5-5.fc27.x86_64
libsecret-devel-0.18.5-5.fc27.x86_64

The error shows as:

prebuild-install info unpack required /home/dan/src/atom/script/node_modules/leveldown/build/Release/leveldown.node successfully
prebuild-install info install Successfully installed prebuilt binary!
Installing apm
Package libsecret-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsecret-1.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libsecret-1', required by 'virtual:world', not found

pkg-config is at "/usr/bin/pkg-config". Running "pkg-config --path libsecret-1" I get:
/usr/lib64/pkgconfig/libsecret-1.pc

Is there somewhere this must be custom configured outside of the standard system search paths?

@eric-jahn
Copy link

eric-jahn commented Aug 18, 2021

'sudo apt-get install libsecret-1-dev'
fixed this error message for me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants