SUSE Linux服务器安装GAMIT10.4

========补充======================

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并不是必须的。

GAMIT10.4下载在安科网5号FTP服务器,具体下载见 http://www.linuxidc.net/thread-1186-1-1.html

相关推荐