# GROMACS compile error

**URL:** <https://gromacs.bioexcel.eu/t/gromacs-compile-error/861>\
**Category:** User discussions\
**Created:** [September 24, 2020, 1:55am UTC](https://gromacs.bioexcel.eu/t/gromacs-compile-error/861 "2020-09-24T01:55:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jinyoung](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@Jinyoung](https://gromacs.bioexcel.eu/u/Jinyoung)\
**Post date:** [September 24, 2020, 1:55am UTC](https://gromacs.bioexcel.eu/t/gromacs-compile-error/861/1 "2020-09-24T01:55:37Z")

</div>

GROMACS version: 2019.4  
GROMACS modification: Yes/No

Dear gromacs users,

I have tried to install the gromacs-2019.4 version that I used in another system.  
But when I issue the command below  
`cmake .. -DGMX_BUILD_OWN_FFTW=ON \ -DREGRESSIONTEST_DOWNLOAD=OFF \ -DGMX_GPU=ON \ -DCUDA_TOOLKIT_ROOT_DIR=/apps/cuda/10.0 \ -DGMX_MPI=ON \ -DGMX_SIMD=AVX2_256 \ -DCMAKE_INSTALL_PREFIX=/home01/x2051a02/apps/gromacs-2019.4-plumed-build \ -DREGRESSIONTEST_PATH=/home1/x2051a02/apps/regressiontests-2019.4/`

AND The CMake error occured  
REGRESSIONTEST\_PATH invalid. The path needs to contain gmxtest.pl.

So I used the other option below  
cmake … -DGMX\_BUILD\_OWN\_FFTW=ON \   
-DREGRESSIONTEST\_DOWNLOAD=ON   
-DGMX\_GPU=ON   
-DCUDA\_TOOLKIT\_ROOT\_DIR=/apps/cuda/10.0   
-DGMX\_MPI=ON   
-DGMX\_SIMD=AVX2\_256   
-DCMAKE\_INSTALL\_PREFIX=/home01/x2051a02/apps/gromacs-2019.4-plumed-build

Then I got the erorr message below:

> CMake Error at tests/CMakeLists.txt:57 (message):  
> error: downloading  
> ‘[http://gerrit.gromacs.org/download/regressiontests-2019.4.tar.gz](http://gerrit.gromacs.org/download/regressiontests-2019.4.tar.gz)’ failed
> 
> status\_code: 7
> 
> status\_string: “Couldn’t connect to server”
> 
> log: Trying 130.237.25.133…
> 
> TCP\_NODELAY set
> 
> Connected to [gerrit.gromacs.org](http://gerrit.gromacs.org) (130.237.25.133) port 80 (#0)
> 
> GET /download/regressiontests-2019.4.tar.gz HTTP/1.1
> 
> Host: [gerrit.gromacs.org](http://gerrit.gromacs.org)
> 
> User-Agent: curl/7.60.0
> 
> Accept: _/_
> 
> HTTP/1.1 302 Found
> 
> Date: Thu, 24 Sep 2020 02:06:47 GMT
> 
> Server: Apache/2.4.18 (Ubuntu)
> 
> Location:  
> ftp://ftp.gromacs.org/regressiontests/regressiontests-2019.4.tar.gz
> 
> Content-Length: 335
> 
> Content-Type: text/html; charset=iso-8859-1
> 
> Ignoring the response-body
> 
> [335 bytes data]
> 
> Connection #0 to host [gerrit.gromacs.org](http://gerrit.gromacs.org) left intact
> 
> Issue another request to this URL:  
> ‘ftp://ftp.gromacs.org/regressiontests/regressiontests-2019.4.tar.gz’
> 
> ```
> Trying 130.237.25.126...
> 
> ```
> 
> TCP\_NODELAY set
> 
> connect to 130.237.25.126 port 21 failed: Connection timed out
> 
> Failed to connect to [ftp.gromacs.org](http://ftp.gromacs.org) port 21: Connection timed out
> 
> Closing connection 1

How do I solve this problem???

Thank you for advanced :)

---

<div class="post-metadata">

**Author:** ![cblau](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/cblau/32/5_2.png) [@cblau](https://gromacs.bioexcel.eu/u/cblau)\
**Post date:** [September 25, 2020, 5:39pm UTC](https://gromacs.bioexcel.eu/t/gromacs-compile-error/861/2 "2020-09-25T17:39:17Z")

</div>

I just checked and the download that is failing for you seems to be working fine for me. This might have multiple issues, but two most likely ones are

- a temporary issue on the server side
- a firewall that does not allow you to download

A quick-fix last resort option is to disable the regressiontests in CMake, though I would not recommend.

---

<div class="post-metadata">

**Author:** ![cblau](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/cblau/32/5_2.png) [@cblau](https://gromacs.bioexcel.eu/u/cblau)\
**Post date:** [September 25, 2020, 5:44pm UTC](https://gromacs.bioexcel.eu/t/gromacs-compile-error/861/3 "2020-09-25T17:44:47Z")

</div>

Also, have a look at this topic, which is almost identical:

> [@Installation halts at cmake](https://gromacs.bioexcel.eu/t/installation-halts-at-cmake/864/2):
>
> Hi Chetna, From [http://manual.gromacs.org/documentation/current/install-guide/index.html:](http://manual.gromacs.org/documentation/current/install-guide/index.html:) Alternatively, you can download and unpack the GROMACS regression test suite [http://gerrit.gromacs.org/download/regressiontests-2020.3.tar.gz](http://gerrit.gromacs.org/download/regressiontests-2020.3.tar.gz) tarball yourself and use the advanced cmake option REGRESSIONTEST\_PATH to specify the path to the unpacked tarball, which will then be used for testing Give that a try. Dan
