# Install Gromacs 2022.2 on Linux debian non GPU version

**URL:** <https://gromacs.bioexcel.eu/t/install-gromacs-2022-2-on-linux-debian-non-gpu-version/4342>\
**Category:** User discussions\
**Tags:** installation-error\
**Created:** [June 22, 2022, 2:04pm UTC](https://gromacs.bioexcel.eu/t/install-gromacs-2022-2-on-linux-debian-non-gpu-version/4342 "2022-06-22T14:04:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lohith](https://avatars.discourse-cdn.com/v4/letter/l/3ab097/32.png) [@Lohith](https://gromacs.bioexcel.eu/u/Lohith)\
**Post date:** [June 22, 2022, 2:04pm UTC](https://gromacs.bioexcel.eu/t/install-gromacs-2022-2-on-linux-debian-non-gpu-version/4342/1 "2022-06-22T14:04:01Z")

</div>

GROMACS version: 2022.2  
GROMACS modification: No  
Here post your question

Make Error in /home/Downloads/gromacs-2022.2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:  
Imported target “MPI::MPI\_C” includes non-existent path

```
"/usr/lib/x86_64-linux-gnu/openmpi/include"

```

in its INTERFACE\_INCLUDE\_DIRECTORIES. Possible reasons include:

- The path was deleted, renamed, or moved to another location.

- An install or uninstall procedure did not complete successfully.

- The installation package was faulty and references files it does not  
provide.

CMake Error in /home/lohith/Downloads/gromacs-2022.2/build/CMakeFiles/CMakeTmp/CMakeLists.txt:  
Imported target “MPI::MPI\_C” includes non-existent path

```
"/usr/lib/x86_64-linux-gnu/openmpi/include"

```

in its INTERFACE\_INCLUDE\_DIRECTORIES. Possible reasons include:

- The path was deleted, renamed, or moved to another location.

- An install or uninstall procedure did not complete successfully.

- The installation package was faulty and references files it does not  
provide.

CMake Error at /usr/share/cmake-3.23/Modules/FindMPI.cmake:1264 (try\_compile):  
Failed to generate test project build system.  
Call Stack (most recent call first):  
/usr/share/cmake-3.23/Modules/FindMPI.cmake:1315 (\_MPI\_try\_staged\_settings)  
/usr/share/cmake-3.23/Modules/FindMPI.cmake:1638 (\_MPI\_check\_lang\_works)  
cmake/gmxManageMPI.cmake:65 (find\_package)  
CMakeLists.txt:422 (include)

Am facing an error while installing Gromacs to my PC, I have mentioned the errors above, Could anybody help me to solve this issue.

---

<div class="post-metadata">

**Author:** ![hellmrf](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/hellmrf/32/1886_2.png) [@hellmrf](https://gromacs.bioexcel.eu/u/hellmrf)\
**Post date:** [December 21, 2022, 11:30pm UTC](https://gromacs.bioexcel.eu/t/install-gromacs-2022-2-on-linux-debian-non-gpu-version/4342/2 "2022-12-21T23:30:35Z")

</div>

It happens because GROMACS rely on `openmpi` package. In that case, just install it before building from source:

```auto
sudo apt install libopenmpi-dev

```
