# Installation of gromacs 2022.2

**URL:** <https://gromacs.bioexcel.eu/t/installation-of-gromacs-2022-2/4515>\
**Category:** User discussions\
**Tags:** installation-error\
**Created:** [July 27, 2022, 9:56am UTC](https://gromacs.bioexcel.eu/t/installation-of-gromacs-2022-2/4515 "2022-07-27T09:56:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PallaviShekar](https://avatars.discourse-cdn.com/v4/letter/p/9e8a1a/32.png) [@PallaviShekar](https://gromacs.bioexcel.eu/u/PallaviShekar)\
**Post date:** [July 27, 2022, 9:56am UTC](https://gromacs.bioexcel.eu/t/installation-of-gromacs-2022-2/4515/1 "2022-07-27T09:56:02Z")

</div>

Can anyone please help me out  
I’ve downloaded gromacs version 2022.2, I’m following the installation guide.

This is the error which I got when i run make check

The following tests FAILED:  
1 - GmxapiExternalInterfaceTests (Failed)  
4 - NbLibSamplesTestArgon (ILLEGAL)  
5 - NbLibSamplesTestMethaneWater (ILLEGAL)  
8 - NbLibTprTests (ILLEGAL)  
9 - NbLibIntegrationTests (ILLEGAL)  
42 - GmxTimingTests (ILLEGAL)  
61 - MdrunOutputTests (Failed)  
62 - MdrunModulesTests (Failed)  
63 - MdrunIOTests (Failed)  
64 - MdrunTestsOneRank (Failed)  
65 - MdrunTestsTwoRanks (Failed)  
66 - MdrunSingleRankAlgorithmsTests (Failed)  
67 - MdrunNonIntegratorTests (ILLEGAL)  
68 - MdrunTpiTests (Failed)  
69 - MdrunMpiTests (Failed)  
73 - MdrunMpi1RankPmeTests (Failed)  
74 - MdrunMpi2RankPmeTests (Failed)  
75 - MdrunMpiCoordinationBasicTestsOneRank (Failed)  
76 - MdrunMpiCoordinationBasicTestsTwoRanks (Failed)  
77 - MdrunMpiCoordinationCouplingTestsOneRank (Failed)  
78 - MdrunMpiCoordinationCouplingTestsTwoRanks (Failed)  
79 - MdrunMpiCoordinationConstraintsTestsOneRank (Failed)  
80 - MdrunMpiCoordinationConstraintsTestsTwoRanks (Failed)  
81 - MdrunFEPTests (Failed)  
82 - MdrunPullTests (Failed)  
84 - MdrunVirtualSiteTests (Failed)  
85 - regressiontests/complex (Failed)  
86 - regressiontests/freeenergy (Failed)  
87 - regressiontests/rotation (Failed)  
88 - regressiontests/essentialdynamics (Failed)  
Errors while running CTest  
make[3]: \*\*\* [CMakeFiles/run-ctest-nophys.dir/build.make:71: CMakeFiles/run-ctest-nophys] Error 8  
make[2]: \*\*\* [CMakeFiles/Makefile2:3254: CMakeFiles/run-ctest-nophys.dir/all] Error 2  
make[1]: \*\*\* [CMakeFiles/Makefile2:3287: CMakeFiles/check.dir/rule] Error 2  
make: \*\*\* [Makefile:641: check] Error 2

please someone help me to solve this  
Thankyou in advance

---

<div class="post-metadata">

**Author:** ![MichelePellegrino](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/michelepellegrino/32/628_2.png) [@MichelePellegrino](https://gromacs.bioexcel.eu/u/MichelePellegrino)\
**Post date:** [July 29, 2022, 7:50am UTC](https://gromacs.bioexcel.eu/t/installation-of-gromacs-2022-2/4515/2 "2022-07-29T07:50:14Z")

</div>

Hi,

I believe the result of the tests is greatly influenced by the hardware and the `cmake` options and thus there is no way to know that’s wrong by just reading the error message…

However, you can very well install GROMACS even without running `make check`: just do `sudo make install`, source the binary and try it out! It may be that the failures highlited in `make check` are completely bening and won’t affect your runs. It happens to me every time I try to install a customized GROMACS version on a cluster or a supercomputer.

---

<div class="post-metadata">

**Author:** ![PallaviShekar](https://avatars.discourse-cdn.com/v4/letter/p/9e8a1a/32.png) [@PallaviShekar](https://gromacs.bioexcel.eu/u/PallaviShekar)\
**Post date:** [July 29, 2022, 7:52am UTC](https://gromacs.bioexcel.eu/t/installation-of-gromacs-2022-2/4515/3 "2022-07-29T07:52:50Z")

</div>

Okay sir.  
Thank you.

---

<div class="post-metadata">

**Author:** ![PallaviShekar](https://avatars.discourse-cdn.com/v4/letter/p/9e8a1a/32.png) [@PallaviShekar](https://gromacs.bioexcel.eu/u/PallaviShekar)\
**Post date:** [August 1, 2022, 6:15am UTC](https://gromacs.bioexcel.eu/t/installation-of-gromacs-2022-2/4515/4 "2022-08-01T06:15:22Z")

</div>

Hello sir  
please do help me out with this error  
Error occurred when make was runned

[97%] Linking CXX shared library …/…/lib/libgromacs.so  
/usr/bin/ld: /usr/local/lib/libfftw3f.a(lt7-conf.o): warning: relocation against `fftwf_solvtab_rdft_r2r' in read-only section `.text’  
/usr/bin/ld: /usr/local/lib/libfftw3f.a(assert.o): relocation R\_X86\_64\_PC32 against symbol `stdout@@GLIBC\_2.2.5’ can not be used when making a shared object; recompile with -fPIC  
/usr/bin/ld: final link failed: bad value  
collect2: error: ld returned 1 exit status  
make[2]: \*\*\* [src/gromacs/CMakeFiles/libgromacs.dir/build.make:13361: lib/libgromacs.so.7.0.0] Error 1  
make[1]: \*\*\* [CMakeFiles/Makefile2:4633: src/gromacs/CMakeFiles/libgromacs.dir/all] Error 2  
make: \*\*\* [Makefile:166: all] Error 2  
Thank you in advance.

---

<div class="post-metadata">

**Author:** ![ericirrgang](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/ericirrgang/32/438_2.png) [@ericirrgang](https://gromacs.bioexcel.eu/u/ericirrgang)\
**Post date:** [August 2, 2022, 8:23am UTC](https://gromacs.bioexcel.eu/t/installation-of-gromacs-2022-2/4515/5 "2022-08-02T08:23:55Z")

</div>

> This is the error which I got when i run make check

It looks like there is something wrong with your compiler toolchain or the libraries you are linking against.

As Michele said, HPC environments can be difficult because the architecture of the login nodes and compute nodes can be different. If you are compiling for a compute node, it is best to do cmake, build, and make check _all_ on a compute node, such as through an interactive job.

If this is not the problem, then it is hard to guess about the problem without more information about your computing environment and the CMake command line you used.

> `/usr/bin/ld: /usr/local/lib/libfftw3f.a(assert.o): relocation R_X86_64_PC32 against symbol stdout@@GLIBC_2.2.5’ can not be used when making a shared object; recompile with -fPIC`

It looks like you are building GROMACS with shared libraries, but only a static library archive was found for libfftw3f. You can either

- [build GROMACS with static linking](https://manual.gromacs.org/documentation/2022/install-guide/index.html#static-linking),
- install (or ask to have installed on your HPC cluster) a shared object library for libfftw3f, or
- update the [FFT library options](https://manual.gromacs.org/documentation/2022/install-guide/index.html#fast-fourier-transform-library) for the GROMACS build.

---

<div class="post-metadata">

**Author:** ![Bratin](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@Bratin](https://gromacs.bioexcel.eu/u/Bratin)\
**Post date:** [August 3, 2022, 6:08am UTC](https://gromacs.bioexcel.eu/t/installation-of-gromacs-2022-2/4515/6 "2022-08-03T06:08:57Z")

</div>

you need to install cmake latest version, python 3.7 and gcc-7, g+±7 to compile gromacs-2022.2
