Skip to content
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

No package 'libsecret-1' found #1035

Closed
gustawdaniel opened this issue Nov 18, 2018 · 0 comments
Closed

No package 'libsecret-1' found #1035

gustawdaniel opened this issue Nov 18, 2018 · 0 comments

Comments

@gustawdaniel
Copy link

After cloning master i run

npm i

and had error

No package 'libsecret-1' found

Full logs below

npm i

> iltorb@1.0.13 install /home/daniel/exp/keeweb/node_modules/iltorb
> node-gyp rebuild

make: Entering directory '/home/daniel/exp/keeweb/node_modules/iltorb/build'
  CC(target) Release/obj.target/decode/brotli/common/dictionary.o
  CC(target) Release/obj.target/decode/brotli/dec/bit_reader.o
  CC(target) Release/obj.target/decode/brotli/dec/decode.o
../brotli/dec/decode.c: In function ‘DecodeMetaBlockLength’:
../brotli/dec/decode.c:192:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->substate_metablock_header = BROTLI_STATE_METABLOCK_HEADER_EMPTY;
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:195:7: note: here
       case BROTLI_STATE_METABLOCK_HEADER_EMPTY:
       ^~~~
../brotli/dec/decode.c:203:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->substate_metablock_header = BROTLI_STATE_METABLOCK_HEADER_NIBBLES;
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:206:7: note: here
       case BROTLI_STATE_METABLOCK_HEADER_NIBBLES:
       ^~~~
../brotli/dec/decode.c:217:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->substate_metablock_header = BROTLI_STATE_METABLOCK_HEADER_SIZE;
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:220:7: note: here
       case BROTLI_STATE_METABLOCK_HEADER_SIZE:
       ^~~~
../brotli/dec/decode.c:232:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->substate_metablock_header =
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
             BROTLI_STATE_METABLOCK_HEADER_UNCOMPRESSED;
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:236:7: note: here
       case BROTLI_STATE_METABLOCK_HEADER_UNCOMPRESSED:
       ^~~~
../brotli/dec/decode.c:254:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->substate_metablock_header = BROTLI_STATE_METABLOCK_HEADER_BYTES;
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:257:7: note: here
       case BROTLI_STATE_METABLOCK_HEADER_BYTES:
       ^~~~
../brotli/dec/decode.c:266:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->substate_metablock_header = BROTLI_STATE_METABLOCK_HEADER_METADATA;
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:269:7: note: here
       case BROTLI_STATE_METABLOCK_HEADER_METADATA:
       ^~~~
../brotli/dec/decode.c: In function ‘BrotliDecoderDecompressStream’:
../brotli/dec/decode.c:1982:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->state = BROTLI_STATE_METABLOCK_BEGIN;
         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:1984:7: note: here
       case BROTLI_STATE_METABLOCK_BEGIN:
       ^~~~
../brotli/dec/decode.c:1987:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->state = BROTLI_STATE_METABLOCK_HEADER;
         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:1989:7: note: here
       case BROTLI_STATE_METABLOCK_HEADER:
       ^~~~
../brotli/dec/decode.c:2062:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->state = BROTLI_STATE_HUFFMAN_CODE_1;
         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:2064:7: note: here
       case BROTLI_STATE_HUFFMAN_CODE_1: {
       ^~~~
../brotli/dec/decode.c:2069:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->state = BROTLI_STATE_HUFFMAN_CODE_2;
         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:2072:7: note: here
       case BROTLI_STATE_HUFFMAN_CODE_2: {
       ^~~~
../brotli/dec/decode.c:2077:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->state = BROTLI_STATE_HUFFMAN_CODE_3;
         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:2080:7: note: here
       case BROTLI_STATE_HUFFMAN_CODE_3: {
       ^~~~
../brotli/dec/decode.c:2092:45: warning: this statement may fall through [-Wimplicit-fallthrough=]
       case BROTLI_STATE_METABLOCK_HEADER_2: {
                                             ^
../brotli/dec/decode.c:2115:7: note: here
       case BROTLI_STATE_CONTEXT_MODES:
       ^~~~
../brotli/dec/decode.c:2120:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->state = BROTLI_STATE_CONTEXT_MAP_1;
         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:2122:7: note: here
       case BROTLI_STATE_CONTEXT_MAP_1:
       ^~~~
../brotli/dec/decode.c:2130:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->state = BROTLI_STATE_CONTEXT_MAP_2;
         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:2132:7: note: here
       case BROTLI_STATE_CONTEXT_MAP_2:
       ^~~~
../brotli/dec/decode.c:2159:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->state = BROTLI_STATE_TREE_GROUP;
         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:2161:7: note: here
       case BROTLI_STATE_TREE_GROUP:
       ^~~~
../brotli/dec/decode.c:2252:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->state = BROTLI_STATE_DONE;
         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:2254:7: note: here
       case BROTLI_STATE_DONE:
       ^~~~
../brotli/dec/decode.c: In function ‘CopyUncompressedBlockToOutput’:
../brotli/dec/decode.c:1270:34: warning: this statement may fall through [-Wimplicit-fallthrough=]
         s->substate_uncompressed = BROTLI_STATE_UNCOMPRESSED_WRITE;
         ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:1273:7: note: here
       case BROTLI_STATE_UNCOMPRESSED_WRITE: {
       ^~~~
../brotli/dec/decode.c: In function ‘DecodeVarLenUint8’:
../brotli/dec/decode.c:138:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
       if (bits == 0) {
          ^
../brotli/dec/decode.c:144:5: note: here
     case BROTLI_STATE_DECODE_UINT8_SHORT:
     ^~~~
../brotli/dec/decode.c:155:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
       *value = bits;
       ~~~~~~~^~~~~~
../brotli/dec/decode.c:158:5: note: here
     case BROTLI_STATE_DECODE_UINT8_LONG:
     ^~~~
../brotli/dec/decode.c: In function ‘ReadHuffmanCode’:
../brotli/dec/decode.c:697:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
       if (s->sub_loop_counter != 1) {
          ^
../brotli/dec/decode.c:709:5: note: here
     case BROTLI_STATE_HUFFMAN_SIMPLE_SIZE:
     ^~~~
../brotli/dec/decode.c:715:27: warning: this statement may fall through [-Wimplicit-fallthrough=]
       s->sub_loop_counter = 0;
       ~~~~~~~~~~~~~~~~~~~~^~~
../brotli/dec/decode.c:717:5: note: here
     case BROTLI_STATE_HUFFMAN_SIMPLE_READ: {
     ^~~~
../brotli/dec/decode.c:717:44: warning: this statement may fall through [-Wimplicit-fallthrough=]
     case BROTLI_STATE_HUFFMAN_SIMPLE_READ: {
                                            ^
../brotli/dec/decode.c:725:5: note: here
     case BROTLI_STATE_HUFFMAN_SIMPLE_BUILD: {
     ^~~~
../brotli/dec/decode.c:766:27: warning: this statement may fall through [-Wimplicit-fallthrough=]
       s->substate_huffman = BROTLI_STATE_HUFFMAN_LENGTH_SYMBOLS;
       ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:769:5: note: here
     case BROTLI_STATE_HUFFMAN_LENGTH_SYMBOLS: {
     ^~~~
../brotli/dec/decode.c: In function ‘DecodeContextMap’:
../brotli/dec/decode.c:941:31: warning: this statement may fall through [-Wimplicit-fallthrough=]
       s->substate_context_map = BROTLI_STATE_CONTEXT_MAP_READ_PREFIX;
       ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:943:5: note: here
     case BROTLI_STATE_CONTEXT_MAP_READ_PREFIX: {
     ^~~~
../brotli/dec/decode.c:943:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
     case BROTLI_STATE_CONTEXT_MAP_READ_PREFIX: {
                                                ^
../brotli/dec/decode.c:961:5: note: here
     case BROTLI_STATE_CONTEXT_MAP_HUFFMAN:
     ^~~~
../brotli/dec/decode.c:966:31: warning: this statement may fall through [-Wimplicit-fallthrough=]
       s->substate_context_map = BROTLI_STATE_CONTEXT_MAP_DECODE;
       ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../brotli/dec/decode.c:968:5: note: here
     case BROTLI_STATE_CONTEXT_MAP_DECODE: {
     ^~~~
../brotli/dec/decode.c:968:43: warning: this statement may fall through [-Wimplicit-fallthrough=]
     case BROTLI_STATE_CONTEXT_MAP_DECODE: {
                                           ^
../brotli/dec/decode.c:1014:5: note: here
     case BROTLI_STATE_CONTEXT_MAP_TRANSFORM: {
     ^~~~
  CC(target) Release/obj.target/decode/brotli/dec/huffman.o
  CC(target) Release/obj.target/decode/brotli/dec/state.o
  CXX(target) Release/obj.target/decode/src/common/allocator.o
  CXX(target) Release/obj.target/decode/src/common/stream_coder.o
  CXX(target) Release/obj.target/decode/src/dec/decode_index.o
  CXX(target) Release/obj.target/decode/src/dec/stream_decode.o
  CXX(target) Release/obj.target/decode/src/dec/stream_decode_worker.o
  SOLINK_MODULE(target) Release/obj.target/decode.node
  COPY Release/decode.node
  CC(target) Release/obj.target/encode/brotli/common/dictionary.o
  CC(target) Release/obj.target/encode/brotli/enc/backward_references.o
  CC(target) Release/obj.target/encode/brotli/enc/bit_cost.o
  CC(target) Release/obj.target/encode/brotli/enc/block_splitter.o
  CC(target) Release/obj.target/encode/brotli/enc/brotli_bit_stream.o
  CC(target) Release/obj.target/encode/brotli/enc/cluster.o
  CC(target) Release/obj.target/encode/brotli/enc/compress_fragment.o
  CC(target) Release/obj.target/encode/brotli/enc/compress_fragment_two_pass.o
  CC(target) Release/obj.target/encode/brotli/enc/encode.o
  CC(target) Release/obj.target/encode/brotli/enc/entropy_encode.o
  CC(target) Release/obj.target/encode/brotli/enc/histogram.o
  CC(target) Release/obj.target/encode/brotli/enc/literal_cost.o
  CC(target) Release/obj.target/encode/brotli/enc/memory.o
  CC(target) Release/obj.target/encode/brotli/enc/metablock.o
  CC(target) Release/obj.target/encode/brotli/enc/static_dict.o
  CC(target) Release/obj.target/encode/brotli/enc/utf8_util.o
  CXX(target) Release/obj.target/encode/src/common/allocator.o
  CXX(target) Release/obj.target/encode/src/common/stream_coder.o
  CXX(target) Release/obj.target/encode/src/enc/encode_index.o
  CXX(target) Release/obj.target/encode/src/enc/stream_encode.o
  CXX(target) Release/obj.target/encode/src/enc/stream_encode_worker.o
  SOLINK_MODULE(target) Release/obj.target/encode.node
  COPY Release/encode.node
make: Leaving directory '/home/daniel/exp/keeweb/node_modules/iltorb/build'

> node-sass@4.5.3 install /home/daniel/exp/keeweb/node_modules/node-sass
> node scripts/install.js

Cached binary found at /home/daniel/.npm/node-sass/4.5.3/linux-x64-57_binding.node

> keytar@4.0.3 install /home/daniel/exp/keeweb/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/daniel/.nvm/versions/node/v8.11.1/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 Linux 4.15.0-39-generic
gyp ERR! command "/home/daniel/.nvm/versions/node/v8.11.1/bin/node" "/home/daniel/.nvm/versions/node/v8.11.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/daniel/exp/keeweb/node_modules/keytar
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 

> node-sass@4.5.3 postinstall /home/daniel/exp/keeweb/node_modules/node-sass
> node scripts/build.js

Binary found at /home/daniel/exp/keeweb/node_modules/node-sass/vendor/linux-x64-57/binding.node
Testing binary
Binary is fine

> electron@1.7.9 postinstall /home/daniel/exp/keeweb/node_modules/electron
> node install.js


> keeweb@1.6.3 postinstall /home/daniel/exp/keeweb
> cd desktop && npm install

added 1 package from 1 contributor and audited 1 package in 1.473s
found 0 vulnerabilities

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: grunt-appdmg@0.4.0 (node_modules/grunt-appdmg):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for grunt-appdmg@0.4.0: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: keytar@4.0.3 (node_modules/keytar):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: keytar@4.0.3 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

added 1527 packages from 653 contributors and audited 7173 packages in 140.847s
found 321 vulnerabilities (216 low, 78 moderate, 24 high, 3 critical)
  run `npm audit fix` to fix them, or `npm audit` for details

I fixed thanks to

atom/node-keytar#69

that inicates

https://github.com/atom/node-keytar#on-linux

So after command

sudo apt-get install libsecret-1-dev

I fixed

npm i

And suggest to add

sudo apt-get install libsecret-1-dev

To README or create other space for notes about dependencies.

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

No branches or pull requests

1 participant