Package ‘libcjson’, required by ‘virtual: world’, not found
During the buld of the gvmd i got the following error Package ‘libcjson’, required by ‘virtual: world’, not found
– Checking for module ‘libcjson>=1.7.14’ – Package ‘libcjson’, 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_internal) src/CMakeLists.txt:29 (pkg_check_modules)
Installation is done on Debian 12 (debian-12.6.0-amd64)
@y0urself This probably needs to be moved back to the docs repository, unless i had missed something this seems to be not an issue in the gvmd component as the prerequisite is already documented here:
cJSON >= 1.7.14 (Debian package: libcjson-dev)
https://github.com/greenbone/gvmd/blob/main/INSTALL.md#prerequisites-for-greenbone-vulnerability-manager
Only the community docs are missing this package here:
https://github.com/greenbone/docs/blob/main/src/22.4/source-build/gvmd/dependencies.md
Some short refs:
- greenbone/gvm-libs#830 (PR the dependency got introduced initially)
- greenbone/gvm-libs#831 (Addition to the
INSTALL.mdof the component) - greenbone/gvmd#2165 (PR the dependency got introduced initially)
- greenbone/gvmd#2298 (Addition to the
INSTALL.mdof the component)
Hi, the libcjson-dev package was added to the gvmd dependencies list, but should also (or maybe be moved) be added to the gvm-libs dependencies list.
https://github.com/greenbone/gvm-libs/blob/0982cb8fd541970cecdfd484243b2a259be902d1/INSTALL.md?plain=1#L20
Thanks for catching that! Not sure why i missed that. Will be fixed with https://github.com/greenbone/docs/pull/552