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”.