//4.配置[set gamitpath = /opt/Gamit_Globk]//这个路径根据用户安装位置决定,我这里就是 /opt/Gamit_Globk目录
----------------------------------------------------------------
Gamit/Globk安装完成后,要使软件能够正常使用,还要对“etc文件夹”下的csh.cshrc文件进行必要的配置,否则csh将无法在终端调用Gamit命令进行数据解算(即不能在任意文件夹下调用命令)。以下是我的安装下的csh.cshrc文件:
# This file is applicable to all C-shell users.
# set prompt
set prompt = "[`echo $cwd`]% "
set history = 50
set gamitpath = /opt/Gamit_Globk
set path = (. /bin /sbin /ect /usr/bin /usr/sbin /usr/ucb /usr/bin/X11 /usr/X11R6/bin $path)
set path = (. /usr/local/gmt/bin /usr/local/bin /usr/local/sbin /usr/local/lib /usr/lib $path)
#set path = (. /usr/local/gmt/bin /usr/local/bin /usr/local/lib /usr/ucb/ nfs r0 soft0 0 $path)
set path = (. $gamitpath/gamit/bin $gamitpath/kf/bin $gamitpath/com $path)
setenv HELP_DIR $gamitpath/help/
setenv PATH "/usr/sbin:/sbin:${PATH}"
setenv MANPATH /usr/local/gmt/man:/usr/local/man:/usr/X11R6/man
setenv LIBPATH /usr/local/gmt/lib:/usr/lib:/usr/local/lib:/usr/i386-glibc21-linux/lib
#set gcclib direction
setenv LD_LIBRARY_PATH /usr/local/gcc-3.4.1/lib/
# set alias
alias cd 'cd \!*; set prompt = "[`echo $cwd`]% "'
alias pwd 'echo $cwd'
alias ls 'ls --classify'
alias ll 'ls -l'
alias la 'ls -a'
alias rm 'rm -i'
alias mv 'mv -i'