# Installation 2021.5 error

**URL:** <https://gromacs.bioexcel.eu/t/installation-2021-5-error/4142>\
**Category:** User discussions\
**Tags:** cmake-error\
**Created:** [May 10, 2022, 2:28am UTC](https://gromacs.bioexcel.eu/t/installation-2021-5-error/4142 "2022-05-10T02:28:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marzouk](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@marzouk](https://gromacs.bioexcel.eu/u/marzouk)\
**Post date:** [May 10, 2022, 2:28am UTC](https://gromacs.bioexcel.eu/t/installation-2021-5-error/4142/1 "2022-05-10T02:28:13Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![pbauer](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/pbauer/32/13_2.png) [@pbauer](https://gromacs.bioexcel.eu/u/pbauer)\
**Post date:** [May 10, 2022, 6:59am UTC](https://gromacs.bioexcel.eu/t/installation-2021-5-error/4142/2 "2022-05-10T06:59:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![marzouk](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@marzouk](https://gromacs.bioexcel.eu/u/marzouk)\
**Post date:** [May 10, 2022, 7:29am UTC](https://gromacs.bioexcel.eu/t/installation-2021-5-error/4142/3 "2022-05-10T07:29:17Z")

</div>

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