Amber masthead
Filler image AmberTools23 Amber22 Manuals Tutorials Force Fields Contacts History
Filler image

Useful links:

Amber Home
Download Amber
Installation
MacOS
Windows
CentOS
Debian
Fedora
OpenSuse
Ubuntu
Arch/Manjaro
Containers
FAQ
Amber Citations
GPU Support
Updates
Mailing Lists
For Educators
File Formats
Contributors

Installing Amber on CentOS

You will find below generic recommendations for installing Amber23 as well as specific instructions tailored for your CentOS version.

Generic installation instructions

About cmake:

Since Amber20, a new installation mechanism is provided that makes use of cmake. A decent version of cmake is needed, therefore it is highly recommended to download and install the cmake executable from the cmake.org website.

About Python:

Many programs within Amber requires a decent version of Python. When configuring Amber, the run_cmake script will check your installation and will most probably recommend to download and install a compatible Python from Continuum IO (via miniconda). It is highly recommended to follow this suggestion and let the run_cmake script install Python inside the Amber tree.

About CentOS & MPI with Amber:

Some programs in Amber (e.g., pmemd, cpptraj, etc.) can be built and installed in their parallel MPI version. If you want to build and install these MPI programs, you will need to provide a MPI compiler like OpenMPI or MPICH. The OpenMPI and MPICH system installations provided by CentOS (i.e., through yum install) are known to be somehow incompatible with Amber23.

One recommendation is to download a recent version of OpenMPI at open-mpi.org, untar the distribution in amber22_src/AmberTools/src, and execute in that directory the configure_openmpi script. (Do this after you have done a serial install, and have sourced the amber.sh script in the installation folder to create an AMBERHOME environment variable.) Similar instructions apply to MPICH, (see mpich.org,) but at least one user has reported configuration problems with this on CentOS7.

Building with cmake

We highly recommend that you refer to Chapter 2 of the Amber 2023 Reference Manual for detailed instructions on how to install Amber23.

Since Amber20, the build system has move to cmake. A script called run_cmake is available in the amber22_src/build directory. For most users, the options chosen in this script should be OK.

The installation of Amber is performed in two steps: cmake configuration, then building and install:

cd amber22_src/build
# optional: edit the run_cmake script to make any needed changes;
# most users should not need to do this
./run_cmake
# Next, build and install the code:
make install

CentOS 8

The following command should get you all the necessary packages to get Amber to compile:

yum -y install tcsh make \
               gcc gcc-gfortran gcc-c++ \
               which flex bison patch bc \
               libXt-devel libXext-devel \
               perl perl-ExtUtils-MakeMaker util-linux wget \
               bzip2 bzip2-devel zlib-devel tar

CentOS 7

The following command should get you all the necessary packages to get Amber to compile:

yum -y install tcsh make \
               gcc gcc-gfortran gcc-c++ \
               which flex bison patch bc \
               libXt-devel libXext-devel \
               perl perl-ExtUtils-MakeMaker util-linux wget \
               bzip2 bzip2-devel zlib-devel tar

CentOS 6

Installation of Amber on a CentOS 6 Linux node is a little tricky since the default GNU compiler is now too old to compile the source code. The recommended procedure is to install a more recent version using the Developer Toolset software collection (devtoolset).

yum -y install tcsh make \
               which flex bison patch bc \
               libXt-devel libXext-devel \
               perl perl-ExtUtils-MakeMaker util-linux wget \
               bzip2 bzip2-devel zlib-devel tar

# update to a newer gcc
yum -y install centos-release-scl
yum -y install devtoolset-8

then, in your terminal, access the newer GNU compiler using:

source /opt/rh/devtoolset-8/enable

"How's that for maxed out?"

Last modified: Dec 4, 2023