这篇博文专门讲述 Ambertools15的安装方法,尽管Ambertools16版本已经正是发行了,但两者在安装方式上没有任何区别。比较偏爱Ambertools15的原因主要还是在容量方面(230M),它比Ambertools14改进了不少,但其bz2型压缩容量只增加了27M,而Ambertools16已经有330M了(这个新功能如果在以后应用中涉略较多的话,我在专门开博讨论)。网络中对如何安装ambertools较为缺乏,而且介绍非常简单,参考链接[1]和[2]。

在安装时,要了解tools里面的文件多数场合是用不到的,因此真正有用的是Amber15:

[amber14]$ ./configure gnu
Checking for updates...
Checking for available patches online. This may take a few seconds...
Available AmberTools 15 patches:
update.1 (modifies MMPBSA.py, ParmEd, cpptraj)
update.2 (modifies AmberTools, CUDA)
update.3 (modifies nab, sff)
update.4 (modifies Leap, Lipid14, force, field)
update.5 (modifies ParmEd)
update.6 (modifies pmemd.cuda)
There are patches available. Do you want to apply them now? [y/N] (Recommended Y)
y
Preparing to apply updates... please wait.
Downloading updates for AmberTools 15
Downloading AmberTools 15/update.1 (4.65 KB)
Applying AmberTools 15/update.1
Downloading AmberTools 15/update.2 (2.25 KB)
Applying AmberTools 15/update.2
Downloading AmberTools 15/update.3 (4.09 KB)
Applying AmberTools 15/update.3
Downloading AmberTools 15/update.4 (43.97 KB)
Applying AmberTools 15/update.4
Downloading AmberTools 15/update.5 (798 Bytes)
Applying AmberTools 15/update.5
Downloading AmberTools 15/update.6 (2.46 KB)
Applying AmberTools 15/update.6
NOTE: update_amber only updates the raw source code! You must recompile if you want
any changes to take effect!
Error: /bin/csh not found on your system! Install csh or tcsh and rerun
configure.
Configure failed due to the errors above!
----------------------------------------------------------
[amber14]$ ./configure -help
Error: /bin/csh not found on your system! Install csh or tcsh and rerun
configure.
Configure failed due to the errors above!
[amber14]$ sed -i 's&/bin/csh&/bin/bash&g' `grep -rl /bin/csh ./`
[amber14]$ ./configure --prefix=/home/hongyz/panfile/amber14/build -gnu
Checking for updates...
Checking for available patches online. This may take a few seconds...
Available AmberTools 15 patches:
update.1 (modifies MMPBSA.py, ParmEd, cpptraj)
update.2 (modifies AmberTools, CUDA)
update.3 (modifies nab, sff)
update.4 (modifies Leap, Lipid14, force, field)
update.5 (modifies ParmEd)
update.6 (modifies pmemd.cuda)
There are patches available. Do you want to apply them now? [y/N] (Recommended Y)
N
NOT updating your tree and continuing anyway.
Error: Unknown flag: --prefix=/home/hongyz/panfile/amber14/build
Type './configure -help' for options.
Configure failed due to the errors above!
[amber14]$ ./configure -help
Usage: ./configure [flags] compiler
where compiler is one of: [[ gnu, intel, pgi, or clang ]]
COMPILERS
-----------------------------------
Compiler Set | C | C++ | Fortran
------------------------------------------------
gnu | gcc | g++ | gfortran
intel | icc | icpc | ifort
pgi | pgcc | pgCC | pgf90
clang | clang | clang++ | gfortran
Most common flags:
-mpi Use MPI for parallelization
-cuda Builds the NVIDIA GPU version of pmemd (pmemd.cuda or
pmemd.cuda.MPI) with default SPFP mixed single/double/
fixed-point precision.
(Note: Set CUDA_HOME to your cuda build tools installation
path; this is typically /usr/local/cuda.)
-openmp Use OpenMP pragmas to parallelize NAB, SAXS and paramfit
(not well tested for pgi).
Do not use -openmp and -mpi at the same time. Type "make
clean; make openmp" after setting this flag.
-cygwin Include modifications for cygwin on Windows
-noX11 Do not build programs that require X11 libraries
-macAccelerate Use optimized blas/lapack bundled with Mac OS X
Some influential environment variables:
MKL_HOME If set then link in Intel's MKL libraries (intel, gnu)
For information on less-common flags, type "./configure --full-help"
===============================================================================
[amber14]$ ./configure gnu
Checking for updates...
Checking for available patches online. This may take a few seconds...
Available AmberTools 15 patches:
No patches available
Searching for python2... Found python2.7: /home/hongyz/softvasp/apply/ourpython/bin/python2.7
Obtaining the gnu compiler suite versions, e.g.:
gcc -v
The C version is 4.4.7
The Fortran version is 4.4.7
Testing the gcc compiler:
gcc -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o testp testp.c
OK
Testing the g++ compiler:
g++ -fPIC -o testp testp.cpp
OK
Testing the gfortran compiler:
gfortran -fPIC -O0 -o testp testp.f
OK
Testing mixed C/Fortran compilation:
gcc -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -c -o testp.c.o testp.c
gfortran -fPIC -O0 -c -o testp.f.o testp.f
gcc -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o testp testp.c.o testp.f.o -lgfortran -w
OK
Testing pointer size:
gcc -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o test_pointer_size test_pointer_size.c
Detected 64 bit operating system.
Testing flex: OK
Checking NetCDF...
Using bundled NetCDF library.
Starting NetCDF build.
Configuring NetCDF C interface (may be time-consuming)...
Compiling the NetCDF C interface (may be time-consuming)...
Configuring NetCDF Fortran interface (may be time-consuming)...
Compiling the NetCDF Fortran interface (may be time-consuming)...
NetCDF build succeeded.
Checking for zlib:
gcc -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DBINTRAJ -lz -o testp testp.c
OK
Checking for libbz2:
gcc -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DBINTRAJ -DHASGZ -lbz2 -o testp testp.c
OK
Configuring fftw-3.3 (may be time-consuming)...
fftw-3.3 configure succeeded.
Configuring XBLAS (may be time-consuming)...
XBLAS configure succeeded.
Configuring MTK++ (may be time-consuming)...
MTK++-0.2.0 configure succeeded.
The configuration file, config.h, was successfully created.
--------------------------------------------------------------------------------
Environment resource files are provided to set the proper environment
variables to use AMBER and AmberTools. This is required to run any Python
programs (like MMPBSA.py, ParmEd, and MCPB.py)
If you use a Bourne shell (e.g., bash, sh, zsh, etc.), source the
/home/hongyz/panfile/amber14/amber.sh file in your shell. Consider adding the line
test -f /home/hongyz/panfile/amber14/amber.sh && source /home/hongyz/panfile/amber14/amber.sh
to your startup file (e.g., ~/.bashrc)
If you use a C shell (e.g., csh, tcsh), source the
/home/hongyz/panfile/amber14/amber.csh file in your shell. Consider adding the line
test -f /home/hongyz/panfile/amber14/amber.csh && source /home/hongyz/panfile/amber14/amber.csh
to your startup file (e.g., ~/.cshrc)
--------------------------------------------------------------------------------
The next step is to type 'make install'
Cleaning the src directories. This may take a few moments.
Configure complete.
==============================================================
[amber14]$ ls
amber.csh AmberTools config.h dat include lib logs README src update_amber
amber.sh bin configure doc KNOWN_PROBLEMS lib64 Makefile share test updateutils
--------------------------------------------------------
copying build/scripts-2.7/PdbSearcher.py -> /home/hongyz/panfile/amber14/bin
copying build/scripts-2.7/OptC4.py -> /home/hongyz/panfile/amber14/bin
copying build/scripts-2.7/MCPB.py -> /home/hongyz/panfile/amber14/bin
changing mode of /home/hongyz/panfile/amber14/bin/PdbSearcher.py to 775
changing mode of /home/hongyz/panfile/amber14/bin/OptC4.py to 775
changing mode of /home/hongyz/panfile/amber14/bin/MCPB.py to 775
running install_egg_info
Writing /home/hongyz/panfile/amber14/lib/python2.7/site-packages/pyMSMT-15.0-py2.7.egg-info
Installation of AmberTools14 serial is complete at Tue Nov 29 05:11:24 CST 2016.
make[1]: Leaving directory `/home/hongyz/panfile/amber14/AmberTools/src'
==============================================================
/home/hongyz/panfile/amber14/src/Makefile not found, or -noamber was set.
This is expected if you do not have Amber14.
==============================================================
[amber14]$ ./configure -mpi
Checking for updates...
Checking for available patches online. This may take a few seconds...
Available AmberTools 15 patches:
No patches available
Searching for python2... Found python2.7: /home/hongyz/softvasp/apply/ourpython/bin/python2.7
Error: Architecture/compiler 'unspecified' is not supported!
Type './configure -help' for options.
Configure failed due to the errors above!
-----------------------------------------------------------

注意,上面安装过程过程中,压缩文件的名称依然是Amber14,这是目前还没有改过来。另外,下面的安装方式是错误的:

[tcsh-6.20.00]$ pwd
/home/hongyz/panfile/tcsh-6.20.00
[tcsh-6.20.00]$ ./configure --prefix=/home/hongyz/panfile/tcsh-6.20.00/build/
[bin]$ pwd
ln -s /home/hongyz/panfile/tcsh-6.20.00/build/bin
[~]$ which bash
/bin/bash
ln -s /home/hongyz/panfile/tcsh-6.20.00/build/bin/tcsh /bin/tcsh
ln -s /home/hongyz/panfile/tcsh-6.20.00/build/bin/tcsh /bin/csh
~/panfile/tcsh-6.20.00/build/bin/tcsh
==================================================================================
make[2]: Leaving directory `/home/hongyz/panfile/amber14/AmberTools/src/sander'
Installation of AmberTools14 MPI is complete at Tue Nov 29 03:48:26 CST 2016.
make[1]: Leaving directory `/home/hongyz/panfile/amber14/AmberTools/src'
==============================================================
/home/hongyz/panfile/amber14/src/Makefile not found, or -noamber was set.
This is expected if you do not have Amber14.
--------------------------------------------------------
export AMBERHOME=/home/hongyz/panfile/amber14
export PATH=$PATH:$AMBERHOME/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$AMBERHOME/lib
export DO_PARALLEL="mpirun -np 16"
make test
(cd AmberTools/test && make test.parallel)
make[1]: Entering directory `/home/hongyz/panfile/amber14/AmberTools/test'
./test_at_parallel.sh
Tests being run with DO_PARALLEL="mpirun -np 16".
Could not import Amber Python modules. This likely means
that your Amber Python environment was not set up correctly
We recommend adding the line:
test -f /home/hongyz/panfile/amber14/amber.sh && source /home/hongyz/panfile/amber14/amber.sh (sh/bash/zsh)
or
test -f /home/hongyz/panfile/amber14/amber.csh && source /home/hongyz/panfile/amber14/amber.csh (csh/tcsh)
to your login shell resource file (e.g., ~/.bashrc or ~/.cshrc)
make[1]: *** [test.parallel] Error 1
make[1]: Leaving directory `/home/hongyz/panfile/amber14/AmberTools/test'
make: *** [test.parallel] Error 2

参考链接:

[1] Amber14安装方法;关于Mac 10.10 安装ambertools 14 心得;Amber11+AmberTools1.5在RHEL5.4中的安装

[2] Amber11+AmberTools1.5+CUDA加速-安装总结;Mac OS 安装Ambertools14;Amber14在Centos6.6下的安装

[3] ubuntu14.04 安装ambertools15;Redhat 5.6中 Amber12的安装;Amber10/Ambertool1.2 Linux安装步骤

[4] Amber12安装-完整;Amber安装并行;Amber11 + AmberTools1.5 软件包和详细安装步骤,附Redhat5.4下载地址

[5] Installing Amber14 And AmberTools15;Re: [AMBER] amber14 CUDA GPU for workstation

[6] Re: [AMBER] errors in plumed and amber14 patch (Jason Swails)Amber12及AmberTools12发布

[7] Amber tools 中的antechamber 必须要在安装了amber11的前体下才能使用么;amber11+ambertools1.5 安装问题

[8] AMBER10 和AMBERTOOLS-1.2 for linux;使用AmberTools+ACPYPE+Gaussian创建小分子GAFF力场的拓扑文件

[9] 分子模拟软件Amber14.0 单一采购来源公示;Computer-Aided Drug Design;Re: [AMBER] frcmod file erro

[10] 如何利用VMD的topotools工具导出data文件中需要的bond,angle, dihedral list;Re: [AMBER] csh problem

[11] 如何将pdb文件批量转换为mol2格式文件;用VMD画虚线;Re: [AMBER] get sqm Error when run antechamber

[12] AMBER16新功能介绍;AMBER:小分子处理;Re: [AMBER] convergence problem in antechamber with Ambertools14

Ambertools15安装(详细)的更多相关文章

  1. linux/centos下安装nginx(rpm安装和源码安装)详细步骤

    Centos下安装nginx rpm包                                                                                 ...

  2. CM5(Cloudera Manager 5) + CDH5(Cloudera's Distribution Including Apache Hadoop 5)的安装详细文档

    参考 :http://www.aboutyun.com/thread-9219-1-1.html Cloudera Manager5及CDH5在线(cloudera-manager-installer ...

  3. VMware Tools (ubuntu系统)安装详细过程与使用

    前一段时间博主在VMware虚拟机上安装了Ubuntu系统,如果还没有安装的同学可以参考博主上一篇文章:VMware Ubuntu安装详细过程. 猿友们都知道linux不太好用,如果你想将你主机Win ...

  4. MySQL安装详细图解整理

    MySQL安装详细图解 2018-08-19  08:32:33 一.MYSQL的安装 1.打开下载的mysql安装文件mysql-5.0.27-win64.zip,双击解压缩,运行“setup.ex ...

  5. MySQL5.7.25解压版安装详细教程

    MySQL5.7.25解压版安装详细教程 安装步骤: 1.首先,你要下载MySQL解压版,下载地址:https://www.mysql.com/downloads/,图解: 2.解压安装包,根据自己的 ...

  6. (转载)Centos下Elasticsearch安装详细教程

    原文地址:http://www.cnblogs.com/sunny1009/articles/7874251.html Centos下Elasticsearch安装详细教程 1.Elasticsear ...

  7. MySql Server 5.7的下载及安装详细步骤

    1.下载安装包 1)找到官网下载地址(https://dev.mysql.com),选择downloads,找到windows

  8. linux下mysql-5.5.15安装详细步骤

    linux下mysql-5.5.15安装详细步骤 注:该文档中用到的目录路径以及一些实际的值都是作为例子来用,具体的目录路径以各自安装时的环境为准 mysql运行时需要一个启动目录.一个安装目录和一个 ...

  9. Cloudera Manager (centos)安装详细介绍

    文章全部来自:Cloudera Manager (centos)安装详细介绍http://www.aboutyun.com/thread-9190-1-1.html(出处: about云开发) 这里已 ...

  10. MySQL 5.7.20绿色版安装详细图文教程

    MySQL 5.7.20绿色版安装详细图文教程 MySQL是一个关系型数据库管理系统,由瑞典MySQL AB公司开发,目前属于Oracle旗下产品.这篇文章主要介绍了MySQL 5.7.20绿色版安装 ...

随机推荐

  1. Maven项目jar包的依懒范围

  2. ChannelSftp 远程下载目录

    ChannelSftp 并不直接支持远程下载目录, 直接下载, 出现 : not supported to get directory ... 需要自己实现, 我的实现如下: /** * @param ...

  3. postgresql----COPY之表与文件之间的拷贝

    postgresql提供了COPY命令用于表与文件(和标准输出,标准输入)之间的相互拷贝,copy to由表至文件,copy from由文件至表. 示例1.将整张表拷贝至标准输出 test=# cop ...

  4. HTML5 Canvas 小例子 伸缩旋转方块

    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> ...

  5. struts2默认临时文件更改

    struts的文件上传mutifile会有一个临时文件地址,如果需要使用自己指定临时文件地址需要在struts.xml中设置以下内容. <constant name="struts.m ...

  6. vue 监听state 任意值变化、监听mutations actions

    // store.watch((state) => state.count + 1, (newCount) => { // console.log(' 监听') // }) // stor ...

  7. 高德地图 API 计算两个城市之间的距离

    1. 目前在项目中,遇到一个需求不会做,就是要计算两个城市之间的距离,而这两个城市的输入是可变的,如果要使用数据库来先存储两地之间的距离,调用的时候再来调用,那么存数据的时候,要哭的,因为光是省级区域 ...

  8. sql 替换字段中的部分字符,替换指定字符

    把列中凡是有2011的全部修改成2014,如 lieming 里的201101131431改成201401131431,写法:   update tab set lieming = replace(l ...

  9. 虚拟机centos NAT模式 配置静态ip

    主要的设置有1.配置ip地址段,2.配置NAT(网关.ip地址端.子网掩码),3.修改网卡配置文件(/etc/sysconfig/network-scripts/ifcfg-eth0 ),4.重启网卡 ...

  10. VsCode 使用习惯设置(备份)

    { "window.menuBarVisibility": "toggle", "workbench.statusBar.visible": ...