Skip to content

installation is not working, if install prefix is changed. #10

@netseevol

Description

@netseevol

If you change the installation prefix to something like /opt/openvas, the installation no longer works. The following error message appears. I haven't had time to investigate the cause yet, but there's probably a path definition that's incorrect in the script.

2025-06-02 05:16:54 [INFO] Command 'tar -C /root/source -xvzf /root/source/gvmd- 26.0.0.tar.gz' completed successfully.
2025-06-02 05:16:54 [INFO] Executing command: mkdir -p /root/build/gvmd
2025-06-02 05:16:54 [INFO] Command 'mkdir -p /root/build/gvmd' completed success fully.
2025-06-02 05:16:54 [INFO] Executing command: cmake -S /root/source/gvmd-26.0.0 -B /root/build/gvmd -DCMAKE_INSTALL_PREFIX=/opt/openvas -DCMAKE_BUILD_TYPE=Relea se -DLOCALSTATEDIR=/var -DSYSCONFDIR=/etc -DGVM_DATA_DIR=/var -DGVM_LOG_DIR=/var /log/gvm -DGVMD_RUN_DIR=/run/gvmd -DOPENVAS_DEFAULT_SOCKET=/run/ospd/ospd-openva s.sock -DGVM_FEED_LOCK_PATH=/var/lib/gvm/feed-update.lock -DLOGROTATE_DIR=/etc/l ogrotate.d
-- Configuring Greenbone Vulnerability Manager...
-- The C compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")
-- Found Git: /usr/bin/git (found version "2.39.5")
-- Looking for clang-format...
-- clang-format not found.
-- Install prefix: /opt/openvas
-- Log file: /var/log/gvm/gvmd.log
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Checking for module 'libcjson>=1.7.14'
-- Found libcjson, version 1.7.15
-- Checking for module 'libgvm_base>=22.17'
-- Package 'libgvm_base', required by 'virtual:world', not found
CMake Error at /usr/share/cmake-3.25/Modules/FindPkgConfig.cmake:607 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.25/Modules/FindPkgConfig.cmake:829 (_pkg_check_modules_inte rnal)
src/CMakeLists.txt:30 (pkg_check_modules)

-- Configuring incomplete, errors occurred!
See also "/root/build/gvmd/CMakeFiles/CMakeOutput.log".
2025-06-02 05:16:54 [ERROR] Command 'cmake -S /root/source/gvmd-26.0.0 -B /root/ build/gvmd -DCMAKE_INSTALL_PREFIX=/opt/openvas -DCMAKE_BUILD_TYPE=Release -DLOCA LSTATEDIR=/var -DSYSCONFDIR=/etc -DGVM_DATA_DIR=/var -DGVM_LOG_DIR=/var/log/gvm -DGVMD_RUN_DIR=/run/gvmd -DOPENVAS_DEFAULT_SOCKET=/run/ospd/ospd-openvas.sock -D GVM_FEED_LOCK_PATH=/var/lib/gvm/feed-update.lock -DLOGROTATE_DIR=/etc/logrotate. d' failed with status 1.
2025-06-02 05:16:54 [INFO] Cleaning up temporary directories...
2025-06-02 05:16:54 [INFO] Cleanup completed.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions