When I am trying to install openvas 20.08, I always get the following error when trying to do cmake:
However, I am fairly certain that I have the correct version of gvm-libs installed. I have tried uninstalling and reinstalling lib-gvm multiple times but openvas will still not find libgvm_base.
I have the same error,
when i run cmake ā¦ -DCMAKE_INSTALL_PREFIX=/opt/gvm in cd ā¦/ā¦/openvas/build , i receive
gvm@greenbone:~/openvas/build$ cmake ā¦ -DCMAKE_INSTALL_PREFIX=/opt/gvm
ā Configuring the Scannerā¦
ā Looking for clang-formatā¦
ā Looking for clang-formatā¦ /usr/bin/clang-format
Set LIBDIR to /opt/gvm/lib
ā Install prefix: /opt/gvm
ā Checking for module ālibgvm_base>=11.0.0ā
ā No package ālibgvm_baseā found
CMake Error at /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:643 (_pkg_check_modules_internal)
misc/CMakeLists.txt:31 (pkg_check_modules)
ā Configuring incomplete, errors occurred!
See also ā/opt/gvm/openvas/build/CMakeFiles/CMakeOutput.logā.
Iām also running across this same problem on ubuntu 20.04. where is the pkgconfig path? iāve added every path i can think of under the sun for pkgconfig and pkg-config, but still getting the error message. hereās what i have for
starting all over again and doing more research, happen to read the INSTALL.md file in the main openvas directory. if you read through it, it recommends installing the below packages:
turns out i was missing this dependency:
gir1.2-json-1.0
lo and behold, after installing any missing dependencies, the cmake automagically can āseeā the pkgconfig in the path. ha! linux dependency hell at it againā¦
~/source$ cmake $SOURCE_DIR/gvmd-$GVMD_VERSION -DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX -DCMAKE_BUILD_TYPE=Release -DLOCALSTATEDIR=/var -DSYSCONFDIR=/etc -DGVM_DATA_DIR=/var -DGVMD_RUN_DIR=/run/gvmd -DOPENVAS_DEFAULT_SOCKET=/run/ospd/ospd-openvas.sock -DGVM_FEED_LOCK_PATH=/var/lib/gvm/feed-update.lock -DSYSTEMD_SERVICE_DIR=/lib/systemd/system -DDEFAULT_CONFIG_DIR=/etc/default -DLOGROTATE_DIR=/etc/logrotate.d
ā Configuring Greenbone Vulnerability Managerā¦
ā Install prefix: /opt
ā Checking for module ālibgvm_base>=21.4.1ā
ā No package ālibgvm_baseā found
CMake Error at /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:643 (_pkg_check_modules_internal)
src/CMakeLists.txt:29 (pkg_check_modules)
ā Configuring incomplete, errors occurred!
See also ā/home/systemuser/source/CMakeFiles/CMakeOutput.logā.
See also ā/home/systemuser/source/CMakeFiles/CMakeError.logā.