Make not working during gromacs installation

Hello everyone!
I am trying to install GROMACS, a version compatible with Ubuntu 20.04. with both the latest version and GROMACS 2021.5, I am getting the same error as mentioned below.

Please help out!

I have following these steps for the installation process.

~/Downloads/gromacs-2024.2/build$ sudo make
[ 0%] Creating directories for ‘fftwBuild’
[ 0%] Performing download step (download, verify and extract) for ‘fftwBuild’
– Downloading…
dst=‘/home/soumya/Downloads/gromacs-2024.2/build/src/external/build-fftw/fftwBuild-prefix/src/fftw-3.3.8.tar.gz’
timeout=‘none’
inactivity timeout=‘none’
– Using src=‘http://www.fftw.org/fftw-3.3.8.tar.gz
CMake Error at fftwBuild-stamp/download-fftwBuild.cmake:170 (message):
Each download failed!

error: downloading 'http://www.fftw.org/fftw-3.3.8.tar.gz' failed
      status_code: 56
      status_string: "Failure when receiving data from the peer"
      log:
      --- LOG BEGIN ---
        Trying 216.137.187.110:80...

Connected to /www.fftw.org (216.137.187.110) port 80 (#0)

GET /fftw-3.3.8.tar.gz HTTP/1.1

Host: /www.fftw.org

User-Agent: curl/7.81.0

Accept: /

Recv failure: Connection reset by peer

Closing connection 0

      --- LOG END ---

make[2]: *** [src/external/build-fftw/CMakeFiles/fftwBuild.dir/build.make:98: src/external/build-fftw/fftwBuild-prefix/src/fftwBuild-stamp/fftwBuild-download] Error 1
make[1]: *** [CMakeFiles/Makefile2:3532: src/external/build-fftw/CMakeFiles/fftwBuild.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

If you have problems downloading fftw you can install it beforehand and point cmake to where those libraries are installed.

yes, it worked. Thanks.

Alternatively after configuring, find the download-fftwBuild.cmake file and replace its contents with below and add your path to the source files in the file download command.


cmake_minimum_required(VERSION ${CMAKE_VERSION}) # this file comes with cmake

file(DOWNLOAD "https://www.fftw.org/fftw-3.3.10.tar.gz" "<your-path-to-gromacs>/gromacs-2026.2/build/src/external/build-fftw/fftwBuild-prefix/src/fftw-3.3.10.tar.gz"
     SHOW_PROGRESS
     INACTIVITY_TIMEOUT 60
     TIMEOUT 600
     STATUS status)

list(GET status 0 status_code)
list(GET status 1 status_message)

if(NOT status_code EQUAL 0)
    message(FATAL_ERROR "Download failed (${status_code}): ${status_message}")
endif()