Quantum Espresso及其需要软件安装——基于centos 7
必先阅读
centos和win10双系统安装最简单方便的方法及centos系统配置(二)
以搭建gcc MKL openMPI等。
gcc安装
下载gcc-9.3.0,解压
链接: https://pan.baidu.com/s/1XfNLlpG9wE5Q8nL3dgEzaA 提取码: mnfg
将gmp isl mpc mpfr放在gcc主目录
gcc主目录执行./contrib/download_prerequisites,判断依赖包是否正确。
mkdir build && cd build
…/configure --prefix=/usr/lib/gcc/x86_64-redhat-linux/9.3.0/ --enable-checking=release --enable-languages=c,c++,fortran --disable-multilib
需要2-3个小时。
make && sudo make install
在.bashrc添加环境变量
export LD_LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/9.3.0/lib
export PATH=$PATH:/usr/lib/gcc/x86_64-redhat-linux/9.3.0/bin
MKL安装
sudo yum-config-manager --add-repo https://yum.repos.intel.com/mkl/setup/intel-mkl.repo
sudo yum install -y intel-mkl
.bashrc环境变量 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/compilers_and_libraries_2020.2.254/linux/mkl/lib/intel64_lin
openMPI安装
./configure --prefix=/home/flyingd/soft/openmpi
make all install
export PATH=$PATH:/home/flyingd/soft/openmpi/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/flyingd/soft/openmpi/lib
libXC安装
建议使用4.3.4版本,不要使用最新版本!!!
./configure --prefix=/home/flyingd/soft/libxc CC=mpicc EC=mpifort --enable-shared
make
make check
make install
quantum espresso安装
./configure --with-libxc=yes --with-libxc-prefix=/home/flyingd/soft/libxc --enable-openmp
make all
make epw
make w90
export PATH=$PATH:/home/flyingd/soft/QE/qe-6.5/bin
PWGUI安装
sudo yum install epel-release
sudo yum install itk iwidgets
export PATH=$PATH:/home/flyingd/soft/QE/PWgui-6.1/
Xcrysden安装
源码编译未成功,建议使用科音的编译方法。
记得yum install libGL-devel libGLU-devel libXmu-devel
VESTA和VASPKIT安装
无坑,直接编译即可。