Installation 2021.5 error

GROMACS version: 2021.5
GROMACS modification: Yes/No
I am trying to install GROMACS on our lab cluster, so I checked first the CMake version = 3.19.1.
I installed the updated version 3.22.1, then follow the septs on GROMACS Installation but I got this error message.
"
CMake Error in /home/marzouk/gromacs-2021.5/build/CMakeFiles/CMakeTmp/CMakeLists.txt:
Target “cmTC_24962” requires the language dialect “CXX17” , but CMake does
not know the compile flags to use to enable it.

CMake Error at cmake/gmxDetectTargetArchitecture.cmake:44 (try_compile):
Failed to generate test project build system.
Call Stack (most recent call first):
CMakeLists.txt:168 (gmx_detect_target_architecture)
"
Is there any suggetion to figure out this problem?

Hello,

what compilers and other CMake options did you use?
Can you please show the complete command line for it?

You need a C++17 compatible compiler for the 2021 series, so if your compiler doesn’t have the ability to compile C++17 it can’t work.

Cheers

Paul

Thank You Paul,
Yes the problem was in compliler I updated the gcc and g++, then it works