Skip to content

Instantly share code, notes, and snippets.

@CatChenal
Last active December 4, 2023 18:10
Show Gist options
  • Save CatChenal/2398e76d8ac4010c3298671f0bae1459 to your computer and use it in GitHub Desktop.
Save CatChenal/2398e76d8ac4010c3298671f0bae1459 to your computer and use it in GitHub Desktop.
Detailed and revised commands for GROMACS installation in Ubuntu-20.04 (WSL2)

Commands sequence:

tar xfz gromacs-2023.3.tar.gz
cd gromacs-2023.3
mkdir build
cd build
cmake .. -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON
make
make check
sudo make install
source /usr/local/gromacs/bin/GMXRC

Detailed and revised commands:

  1. Get the tarball using ftp (not wget or curl)
ftp ftp://ftp.gromacs.org/gromacs/gromacs-2023.3.tar.gz
  1. Untar it
tar xfzv gromacs-2023.3.tar.gz
  1. Go to the decompressed tarball folder
cd gromacs-2023.3/
  1. Create a 'build' folder and cd to it
mkdir build; cd build

3.5 Install CMake if needed

sudo apt install cmake
  1. Run CMake; only this command worked:
cmake -S ~/gromacs-2023.3/ -B . -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON
  1. Go to 'scripts' folder and source GMXRC.bash
cd scripts; . GMXRC.bash

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment