docs icon indicating copy to clipboard operation
docs copied to clipboard

Package ‘libcjson’, required by ‘virtual: world’, not found

Open bleeuwen-dev opened this issue 1 year ago • 2 comments

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)

bleeuwen-dev avatar Aug 16 '24 12:08 bleeuwen-dev

@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

cfi-gb avatar Sep 27 '24 06:09 cfi-gb

Some short refs:

  • greenbone/gvm-libs#830 (PR the dependency got introduced initially)
  • greenbone/gvm-libs#831 (Addition to the INSTALL.md of the component)
  • greenbone/gvmd#2165 (PR the dependency got introduced initially)
  • greenbone/gvmd#2298 (Addition to the INSTALL.md of the component)

cfi-gb avatar Sep 27 '24 06:09 cfi-gb

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

Image

joshhcd avatar Feb 12 '25 19:02 joshhcd

Thanks for catching that! Not sure why i missed that. Will be fixed with https://github.com/greenbone/docs/pull/552

bjoernricks avatar Feb 13 '25 07:02 bjoernricks