高斯軟件一般使用的都是編譯好的二進制版,所以解壓縮后設置一下環境變量就可以用了。
cd /opt tar xvf g09.tar.gz
設置環境變量,添加到/etc/profile文件中,重新登錄后生效。
export g09root=/opt source $g09root/g09/bsd/g09.profile export GAUSS_SCRDIR=/tmp
有一點需要注意:
g09程序對訪問權限有要求,如果高斯程序的權限允許組外用戶訪問,則會提示如下錯誤:
Files in the Gaussian directory are world accessible. This must be fixed.
所以如果有多個用戶需要使用高斯軟件的話,建議單獨創建一個gauss組,然后所有要使用軟件的用戶都加入gauss組。
groupadd gauss 新建gauss組 chgrp –R gauss /opt/g09 將g09軟件的所屬組改為gauss groupmems –g gauss –a test 將test用戶加入gauss組 groupmems –g gauss –l 顯示gauss組中所有用戶的用戶名
測試:
高斯的軟件包中自帶了很多測試算例,將其中的test397復制到當前目錄中,計算一下。
cp /opt/g09/tests/com/test397.com . g09 test397.com
程序正常計算完成說明軟件安裝成功。