Verify that the gnu f77 (g77) compiler has been installed on the Linux workstation: % rpm -qa | grep gcc-g77
( 檢查是否有安裝 gcc-g77 套件,沒有安裝的話,請自行安裝。此套件放在 Redhat 9.0 安裝光碟的第二片光碟中。 除此之外,也需要 libf2c 的套件。在同一張光碟中。)
Uncompress the archive % su
# cd /usr/local
# tar xzvf /{download_dir}/gamess-current.tar.tar
# chown -R root:root gamess ( or chown -R root:users gamess )
( 用 superuser 登入,切換到 /usr/local 的目錄下,並將 Gamess-current.tar.tar 解壓縮至此,並把Gamess資料夾的 owener 及 group 改為 root ,但建議把 group 改為 users 比較好。否則可能在之後的測試中會出現執行的權限不足的情況發生。)
Update the four scripts: comp, compall, lked, runall # cd /usr/local/gamess
# vi {scriptname}
Change the line chdir /u1/mike/gamess
to chdir /usr/local/gamess
and (except in 'runall' script, where no reference exists)
set TARGET=ibm
to
set TARGET=linux-pc
( 在 gamess 的目錄下,用 vi 編輯 comp, compal, lked, runall 這四個檔,把 chdir/u1/mike/gamess 改為 chdir /usr/local/gamess 及 set TARGET = ibm 改為 set TARGET = linux-pc。)
Update the following script: rungms
# vi rungms
Edit the following lines to read as follows
set TARGET=sockets
and
set SCR=/tmp
and in newer versions of gamess setenv ERICFMT /usr/local/gamess/ericfmt.dat and setenv MCPPATH /usr/local/gamess/mcpdata
and later in the file if ($os == Linux) set GMSPATH=/usr/local/gamess
( 類似上一步驟,用 vi 編輯 rungms 這個檔案,將原本的 SCR 的路徑改為 SCR=/twp,set ERICFMT 的部份改為 /usr/local/gamess/ericfmt.dat,set MCPPATH的路徑,改為 /usr/local/gamess/mcpdata。)
Edit and compile the 'Activate' program # cd /usr/local/gamess/tools
# cp actvte.code actvte.f
# vi actvte.f
For typical Unix systems, simply replace all cards beginning with '*UNX' in the first 4 columns with 4 blanks. See comments in the file for help and more details.
Compile GAMESS # cd /usr/local/gamess
# /bin/csh (if not already in csh or tcsh)
# setenv PATH .:${PATH} (necessary because /bin/comp/may also be in path)
# compall >& compall.log (takes a while)
( 切換到 /usr/local/gamess/ 的目錄下,鍵入 /bin/csh,再輸入 setenv PATH .:${PATH},再輸入 compall >& compall.log,大概要等個 30~40 min 左右。完成之後,會出現提示字元,再進行下一步。)
Compile ddikick (if a ddi subdirectory exists) # cd /usr/local/gamess/ddi
Update the compddi script # vi compddi
Edit the following line to read as follows
set TARGET = linux-pc # echo y | compddi >& compddi.log
# cp -p ddikick.x ../
( 切換到 /usr/local/gamess/ddi/ 的目錄下,用 vi 編輯 compddi,將 set TARGET 的路徑改為 set TARGET = linux-pc。接著再輸入 echo y | compddi >& compddi.log,再將 ddikick.x 複製到上一層的目錄中。 )