Install PWscf on a Debian or Debian based operating system

--------------------------!看到题目证实你系学习计算机数值模拟,或者固体物理的,很荣幸能够和你作个朋友!-----------------------

首先,系统工做环境是debian或者是基于debian的发行版本(ubuntu,gnewsence,etc):

PWscf源代码使用Fortran语言写,执行速度比较快,因此,编译环境:

# apt-get install gfortran


接着,下载PWscf源代码: http://www.pwscf.org/ ,假设下载到目录 ~/,要解压到/opt/:

/home/XXXX/ # tar xvzf espresso-4.1.2.tar.gz
# mv ./espresso-4.1.2/ /opt/
# cd /opt/espresso-3.1.1/
# ./configure
# make all


这样就已经安装完了,如今部署GUI界面:新建文件 /usr/local/bin/pwgui-launch :

# gedit /usr/local/bin/pwgui-launch

#!/bin/bash
export PWGUI="/opt/espresso-4.1.2/PWgui-4.1.1/"
export PATH="$PATH:$PWGUI"
pwgui



# cd /opt/espresso-4.1.2/PWgui-4.1.1/
# chmod +x /usr/local/bin/pwgui-launch


基本能够了,打开终端:

$ pwgui-launch

慢慢深刻研究啦!

来源: http://how-to.wikia.com/

---------------------------------------------------------------------- 我是分隔线 --------------------------------------------------------------------------
*本文内容听从
GNU Free Documentation License 保留做者版权 转载请注明出自http://hi.baidu.com/ghxandsky/
相关文章
相关标签/搜索