歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux管理 >> Linux服務 >> SUSE Linux服務器安裝GAMIT10.4

SUSE Linux服務器安裝GAMIT10.4

日期:2017/2/28 15:45:36   编辑:Linux服務

========補充======================

SSH 後台運行命令

your command &
ctrl + d
then close ssh

#------------------

(1) 後台運行 nohup command &

(2)查看剩余文件數的百分比 df -i /data
(3) 查看該命令的運行狀況 ps -ef | grep sh_gamit
==================================

糾結了一天,終於看到曙光。

前提:

SUSE服務器上,gcc/liX11-dev/tcsh等等都有安裝。

問題:GAMIT10.4安裝結束,並有如下提示:

Don't forget to set your : path to include /data/geodesy/gamit/gamit/bin and /data/geodesy/gamit/kf/bin
: HELP_DIR environment variable in you shell profile
(in .cshrc/.tcshrc add: setenv HELP_DIR /data/geodesy/gamit/help/)
: INSTITUTE evnironment variable in your shell profile
(in your .cshrc/.tcshrc add: setenv INSTITUTE where_i_work)
where_i_work is a 3 character identifier for your solutions
自己在GAMIT目錄下建立.cshrc。運行doy,出現錯誤提示:command not found。

最終在劉超的鼎力幫助下,完成SUSE系統下的GAMIT安裝工作。總結如下:

1)主目錄下 ls -a

顯示隱藏文件.bashrc。

2)vim .bashrc

(點擊a,進入編輯模式;:x-保存退出;:q!-不保存強制退出)

在.bashrc內加入如下內容:

#-------------------------------------#

# below is edited for GAMIT, by whh on 20111012
gamitpath=/data/geodesy/gamit
export PATH=$PATH:$gamitpath/gamit/bin
export PATH=$PATH:$gamitpath/kf/bin
export PATH=$PATH:$gamitpath/gamit/com
#export PATH=$PATH:/data/geodesy/gamit/com
#export PATH=$PATH:/data/geodesy/kf/bin
#export PATH=$PATH:/data/geodesy/gamit/bin
#--------------------------------------#

3) source .bashrc

結果顯示---

gamitpath=/data/geodesy/gamit: Command not found.
Bad : modifier in $ ($).
4)試了n次,變換了n種寫法,一如既往顯示Bad。

第n+1次,重新打開個窗口,把.bashrc自己添加的內容全清除,重新寫入。

運行source .bashrc,成功!!!

莫名奇妙!

5)doy

成功。

-------補充----------------------------

1)昨天沒有source成功的原因,是因為這個命令屬於bash而不是csh的命令。

2)gamitpath=/data/geodesy/gamit 改為 export gamitpath=/data/geodesy/gamit

3)gamit/com路徑輸錯了。 ⊙﹏⊙b汗

4)雖然GAMIT安裝結束後會出現提示

Don't forget to set your : path to include /data/geodesy/gamit/gamit/bin and /data/geodesy/gamit/kf/bin

: HELP_DIR environment variable in you shell profile

(in .cshrc/.tcshrc add: setenv HELP_DIR /data/geodesy/gamit/help/)

事實上在bash環境下,路徑寫入.bashrc中也能成功完成安裝並運行。也就是說,可能csh並不是必須的。

GAMIT相關閱讀:http://www.linuxidc.com/GAMIT/

GAMIT10.4下載在Linux公社5號FTP服務器,具體下載見 http://www.linuxidc.net/thread-1186-1-1.html

Copyright © Linux教程網 All Rights Reserved