CentOS 8: Cmake $SOURCE_DIR/gvmd-$GVMD_VERSION error

Dear Team,
I was building version 22.4 from the source. While I run cmake $SOURCE_DIR/gvmd-$GVMD_VERSION I got the following error. Anybody plz help me to sort this error


CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find PostgreSQL (missing: PostgreSQL_LIBRARY
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake/Modules/FindPostgreSQL.cmake:269 (find_package_handle_standard_args)
src/CMakeLists.txt:43 (find_package)

@Sysadmin1 well. some packages are missing. like postgresql


I have already installed postgresql. I am trying to install it on centos 8 stream . Does this work on this version?

No. Centos 8 is not supported. Only 9. Please always read the docs carefully from the beginning Building 22.4 from Source - Greenbone Community Documentation


Thnaks bricks, for the reply

Note that this doesn’t mean that PostgreSQL isn’t installed but rather that the required development libraries (e.g. postgresql-server-devel are not installed / haven’t been found).