Installation issue (Package 'libcjson', required by 'virtual: world', not found)

Hi,

I have installed a fresh Debian 12.6 (Bookworm) and following the installation instructions from: (Building from Source - Greenbone Community Documentation)

During the installation (building) of the gvmd, i get an error.

– 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)

I can’t find packages with the name libcjson to install on debian? Anybody experienced this issue and know how i can fix this?

Any help is appreciated.

Hello,

and welcome to this community forums.

I would suggest to raise a new issue at Issues · greenbone/docs · GitHub for the case that the documentation doesn’t include all required dependencies.

1 Like

I guess this package libcjson-dev should be added to the gvmd install dependencies.

I added the libcjson-dev, got the same error. Guess somewhere in the installation the reference should be altered?

Yes, perhaps this is the actual issue. I have not had time to look into it myself, but passed this issue along to the docs maintainers. :slight_smile:

I was stuck here as well but had success by adding libcjson-dev (on Debian 12.7, freshly installed).
So I guess the issue was taken care of but not to the extent of adding said library to the instructions. Perhaps this could be added?

For the references:

Just in case anyone comes across the same issue on CentOS Stream 9:
The fix on CentOS Stream 9 is to install the package cjson-devel

sudo dnf install cjson-devel