GROMACS on Ubuntu
This guide will help the user understand how to compile, install, and use GROMACS on their own Ubuntu workstation. If you are using another platform, please refer to the appropriate documentation or contact Benjamin Alldritt for assistance.
Step-by-step guide
Requirements
To compile GROMACS, you will need the following software:
- Fortran compiler (gfortran)
- C compiler (gcc)
- C++ compiler (g++)
- CMake
- MPI
- BLAS
- LAPACK
- FFTW
- LibXML
Ubuntu 12.04 (64 bit)
Install the required packages:
sudo add-apt-repository ppa:ubuntu-sdk-team/ppa && sudo apt-get update
sudo apt-get install cmake gfortran g++ libmpich2-dev libblas-dev liblapack-dev libfftw3-dev libxml2-devDownload the latest version of the GROMACS source code and unpack into a new directory.
mkdir ${HOME}/software
mkdir ${HOME}/software/gromacs
cd ${HOME}/software/gromacs
wget ftp://ftp.gromacs.org/pub/gromacs/gromacs-5.0.tar.gz
tar -xvzf gromacs-5.0.tar.gz
cd gromacs-5.0
mkdir build
cd buildCompile, test, and run GROMACS.
cmake .. -DGMX_MPI=ON -DCMAKE_INSTALL_PREFIX=${HOME}/software/gromacs
make
make install
Ubuntu 14.04 (64 bit)
Install the required packages:
sudo apt-get install cmake gfortran g++ libmpich2-dev libblas-dev liblapack-dev libfftw3-dev libxml2-devDownload the latest version of the GROMACS source code and unpack into a new directory.
mkdir ${HOME}/software
mkdir ${HOME}/software/gromacs
cd ${HOME}/software/gromacs
wget ftp://ftp.gromacs.org/pub/gromacs/gromacs-5.0.tar.gz
tar -xvzf gromacs-5.0.tar.gz
cd gromacs-5.0
mkdir build
cd buildCompile, test, and run GROMACS.
cmake .. -DGMX_MPI=ON -DCMAKE_INSTALL_PREFIX=${HOME}/software/gromacs
make
make install
Related articles
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
Unknown macro: contentbylabel. Click on this message for details.