a) 装MinGW + MSYS + GCC + GFortran b) 装Mpich http://www.mpich.org/static/tarballs/1.4.1p1/mpich2-1.4.1p1-win-ia32.msi c) 装Python(不是必须的) https://www.python.org/ftp/python/2.7.8/python-2.7.8.msi d) 在MSYS下解压缩NWChem 6.6 e) NWChem根目录下创建lib目录,把MPICH2安装文件复制到lib: cp -rp /c/Program\ Files\ \(x86\)/MPICH2/ ~/nwchem-6.6/lib f) 用GCC + GFortran编译BLAS + LAPACK,然后把libblas.a和liblapack.a放到lib。也可以用mkl、acml等。如果忽略这一步,使用NWChem自带的库。 g) 设定环境变量 export NWCHEM_TOP=~/nwchem-6.6 export LARGE_FILES=TRUE export NWCHEM_MODULES=all export NWCHEM_TARGET=LINUX export BLASOPT="-L$NWCHEM_TOP/lib -lblas -llapack" export USE_MPI=y export MPI_LOC=$NWCHEM_TOP/lib/MPICH2 export MPI_LIB=$MPI_LOC/lib export MPI_INCLUDE=$MPI_LOC/include export LIBMPI="-lfmpich2g -lmpi" #export PYTHONHOME=/c/Python27/ #export PYTHONVERSION=27 export DEPEND_CC=gcc h) 编译: cd NWCHEM_TOP/src make nwchem_config make -f GNUmakefile FC=gfortran DEPEND_CC=gcc |