Hello,
I am trying to build Kibana from the code source and I am facing this errors ( I got these errors after I run git pull, before that I built it and I had no problem )
yarn kbn bootstrap :
warning Error running install script for optional dependency: "/ELK-8_0_0/kibana/node_modules/msgpackr-extract: Command failed.
Exit code: 1
Command: node-gyp-build
Arguments:
Directory: /ELK-8_0_0/kibana/node_modules/msgpackr-extract
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@7.0.0
gyp info using node@10.22.1 | linux | x64
gyp info find Python using Python version 3.7.3 found at \"/usr/bin/python3\"
gyp info spawn /usr/bin/python3
gyp info spawn args [ 'ELK-8_0_0/kibana/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 '/ELK-8_0_0/kibana/node_modules/msgpackr-extract/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'ELK-8_0_0/kibana/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '.cache/node-gyp/10.22.1/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/.cache/node-gyp/10.22.1',
gyp info spawn args '-Dnode_gyp_dir=ELK-8_0_0/kibana/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/.cache/node-gyp/10.22.1/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/ELK-8_0_0/kibana/node_modules/msgpackr-extract',
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=.' ]
/bin/sh: 1: gcc: not found
gyp: Call to 'gcc -dumpversion | cut -d '.' -f 1' 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 (/ELK-8_0_0/kibana/node_modules/node-gyp/lib/configure.js:350:16)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.19.0-11-amd64
gyp ERR! command \"/.nvm/versions/node/v10.22.1/bin/node\" \"/ELK-8_0_0/kibana/node_modules/.bin/node-gyp\" \"rebuild\"
gyp ERR! cwd /ELK-8_0_0/kibana/node_modules/msgpackr-extract
[10/27] ⡀ yo
[9/27] ⡀ puppeteer
[8/27] ⡀ re2
[11/27] ⡀ lmdb-store
error /ELK-8_0_0/kibana/node_modules/lmdb-store: Command failed.
Exit code: 1
Command: node-gyp-build
Arguments:
Directory: /ELK-8_0_0/kibana/node_modules/lmdb-store
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@7.0.0
gyp info using node@10.22.1 | linux | x64
gyp info find Python using Python version 3.7.3 found at "/usr/bin/python3"
gyp info spawn /usr/bin/python3
gyp info spawn args [ '/ELK-8_0_0/kibana/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 '/ELK-8_0_0/kibana/node_modules/lmdb-store/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/ELK-8_0_0/kibana/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '.cache/node-gyp/10.22.1/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=.cache/node-gyp/10.22.1',
gyp info spawn args '-Dnode_gyp_dir=/ELK-8_0_0/kibana/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/.cache/node-gyp/10.22.1/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/ELK-8_0_0/kibana/node_modules/lmdb-store',
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=.' ]
/bin/sh: 1: gcc: not found
gyp: Call to 'gcc -dumpversion | cut -d '.' -f 1' 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 (/ELK-8_0_0/kibana/node_modules/node-gyp/lib/configure.js:350:16)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.19.0-11-amd64
gyp ERR! command "/.nvm/versions/node/v10.22.1/bin/node" "/ELK-8_0_0/kibana/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /ELK-8_0_0/kibana/node_modules/lmdb-store
ERROR [bootstrap] failed:
ERROR Error: Command failed with exit code 1: /usr/share/yarn/bin/yarn.js install --non-interactive
at makeError (/ELK-8_0_0/kibana/packages/kbn-pm/dist/index.js:25071:11)
at handlePromise (/ELK-8_0_0/kibana/packages/kbn-pm/dist/index.js:24006:26)
at process._tickCallback (internal/process/next_tick.js:68:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Could someone help me to understand where this error come from as it was working before I run git pull !
Thanks for your help