A step-by-step guide for installing GROMACS 2021.2 on Windows Subsystem for Linux (WSL).
Before starting, ensure you have the following installed on your system:
gcc --version
g++ --version
cmake --version
make and other essential tools are available.wget https://ftp.gromacs.org/gromacs/gromacs-2021.2.tar.gz
tar xfz gromacs-2021.2.tar.gz
cd gromacs-2021.2
mkdir build
cd build
cmake .. -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON
make
make check
sudo make install
GMXRC script:
source /usr/local/gromacs/bin/GMXRC
Tip: Add the above line to your ~/.bashrc file to have it load automatically in every new terminal session.
Summary GROMACS 2021.2 is now successfully installed and ready for molecular dynamics simulations!
Powered by Jekyll and Minimal Light theme.