Closed silverburn closed 5 years ago
Thanks for the report. hiredis was mandatory but not marked as being required. Please install the development packages of hiredis (e.g. https://packages.debian.org/stretch/libhiredis-dev on debian) to fix your build issue.
Expected behavior
make install to complete compile from cloned .git
Current behavior
Cmake .. completes without errors, but make install fails, with "No such file or directory" message:
root@OpenVAS:~/gvm-libs/build# cmake .. -- Configuring the Greenbone Vulnerability Management Libraries... -- Looking for clang-format... -- Looking for clang-format... /usr/bin/clang-format -- Install prefix: /usr/local -- Checking for module 'hiredis>=0.10.1' --
-- Looking for gpgme... -- Found gpgme: /usr/lib/x86_64-linux-gnu/libgpgme.so, version 1.8.0 -- Looking for libgcrypt... -- Looking for libgcrypt... /usr/lib/x86_64-linux-gnu/libgcrypt.so -- Looking for libldap... -- Found /usr/lib/x86_64-linux-gnu/libldap.so - ldap support enabled -- Configuring done -- Generating done -- Build files have been written to: /root/gvm-libs/build
root@OpenVAS:~/gvm-libs/build# make install [ 44%] Built target gvm_base_shared [ 47%] Building C object util/CMakeFiles/gvm_util_shared.dir/kb.c.o /root/gvm-libs/util/kb.c:31:81: fatal error: hiredis/hiredis.h: No such file or directory
include <hiredis/hiredis.h> / for redisReply, freeReplyObject, redisCommand /
compilation terminated. util/CMakeFiles/gvm_util_shared.dir/build.make:158: recipe for target 'util/CMakeFiles/gvm_util_shared.dir/kb.c.o' failed make[2]: [util/CMakeFiles/gvm_util_shared.dir/kb.c.o] Error 1 CMakeFiles/Makefile2:172: recipe for target 'util/CMakeFiles/gvm_util_shared.dir/all' failed make[1]: [util/CMakeFiles/gvm_util_shared.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2
Steps to reproduce
GVM versions
gsa: (gsad --version)
gvm: (gvmd --version)
openvas-scanner: (openvassd --version)
gvm-libs:
openvas-smb:
Environment
Operating system: Debian Installation method / source: (packages, source installation) git clone.
Logfiles