GVM versions
gsad: (‘gsad --version’): not installed yet
gvmd: (‘gvmd --version’): 21.4.4
openvas-scanner: (‘openvas --version’, in older GVM versions < 11: ‘openvassd --version’)
gvm-libs:
Environment
Operating system: Debian Linux
Kernel: Linux debian-gvm 5.10.0-7-amd64 #1 SMP Debian 5.10.40-1 (2021-05-28) x86_64 GNU/Linux
Installation method / source: Installation docs: Building GVM 21.04 — Greenbone Documentation documentation
I’m at the CMAKE stage of the build process:
mkdir -p $BUILD_DIR/gsa && cd $BUILD_DIR/gsa
cmake $SOURCE_DIR/gsa-$GSA_VERSION \
-DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX \
-DCMAKE_BUILD_TYPE=Release \
-DSYSCONFDIR=/etc \
-DLOCALSTATEDIR=/var \
-DGVM_RUN_DIR=/run/gvm \
-DGSAD_PID_DIR=/run/gvm \
-DLOGROTATE_DIR=/etc/logrotate.d
make -j$(nproc)
When I try to cmake step I get the following error:
internal/modules/cjs/loader.js:905
throw err;
^
Error: Cannot find module '@babel/runtime/helpers/interopRequireWildcard'
Require stack:
- /usr/share/nodejs/yarn/lib/cli/index.js
- /usr/share/nodejs/yarn/bin/yarn.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.Module._load (internal/modules/cjs/loader.js:746:27)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:93:18)
at Object.<anonymous> (/usr/share/nodejs/yarn/lib/cli/index.js:3:31)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/share/nodejs/yarn/lib/cli/index.js',
'/usr/share/nodejs/yarn/bin/yarn.js'
]
}
I have tried:
npm install @babel/runtime@latest
and
npm install @babel/core@latest
I get errors:
npm ERR! Object for dependency "@babel/core" is empty.
npm ERR! Something went wrong. Regenerate the package-lock.json with "npm install".
npm ERR! If using a shrinkwrap, regenerate with "npm shrinkwrap".
I have not found any way to complete the cmake of GSA due to this NPM package problem.
Does anyone have experience with this problem and how to build GSA on Debian?