sam2
March 1, 2021, 11:50am
1
Hi,
I have tried all the things that are given in documentation. I am trying to run the code of Openvas in visual studio code but when i compile the code it causing the errors…
identifier “OPENVAS_NVT_DIR” is undefined
identifier “OPENVAS_SYSCONF_DIR” is undefined
identifier “SYSCONFDIR” is undefined
can you tell me how these errors can be resolved.
Thank you in advance
Lukas
March 1, 2021, 12:52pm
2
First this has nothing to do with vulnerability tests, and you need to make sure you use CMAKE or you have to rewrite all make files if you are not using GCC and cmake.
1 Like
sam2
March 1, 2021, 6:09pm
3
Thanks,
I am already using CMAKE but it causing same error.
I am using Kali Linux OS.
please can you help me?.
Lukas
March 1, 2021, 6:49pm
4
Please follow the INSTALL.md that describes how to compile the source.
# INSTALLATION INSTRUCTIONS FOR GREENBONE VULNERABILITY MANAGER
Please note: The reference system used by most of the developers is Debian
GNU/Linux 'Buster' 10. The build might fail on any other system. Also, it is
necessary to install dependent development packages.
## Prerequisites for Greenbone Vulnerability Manager
Prerequisites:
* GCC (Debian package: gcc)
* cmake >= 3.0 (Debian package: cmake)
* glib-2.0 >= 2.42 (Debian package: libglib2.0-dev)
* gnutls >= 3.2.15 (Debian package: libgnutls28-dev)
* libgvm_base, libgvm_util, libgvm_osp, libgvm_gmp >= 20.08.0 ([gvm-libs](https://github.com/greenbone/gvm-libs/tree/gvm-libs-20.08) component)
* PostgreSQL database >= 9.6 (Debian packages: libpq-dev postgresql-server-dev-11)
* pkg-config (Debian package: pkg-config)
* libical >= 1.0.0 (Debian package: libical-dev)
* xsltproc (Debian package: xsltproc)
Install these prerequisites on Debian GNU/Linux 'Buster' 10:
This file has been truncated. show original
If you can´t work with variables and environment settings you should switch to a binary distribution.
2 Likes
You can also try a docker container.
Openvas docker image on Docker hub