The manual has given a detailed instruction for the installment on Ubuntu. Some packages need to be installed as below
sudo apt-get install csh flex gfortran g++ xorg-dev zlib1g-dev libbz2-dev patch python-tk python-matplotlib
In CentOS, we need to install the same package but the command is a little different.
sudo yum install csh flex gcc-gfortran gcc-c++ zlib-devel bzip2-devel patch tkinter python-matplotlib
I did not install xorg-dev on CentOS, since I would not use X11.
./configure -noX11 gnu
The test on my server cost 1h10min, the final output is
1373 file comparisons passed
0 file comparisons failed
0 tests experienced errors
Test log file saved as /data/xiaoquan/apps/amber14/logs/test_at_serial/2016-02-24_17-19-42.log
No test diffs to save!