菜鸟求助:Linux(Fedora14)安装Gamit10.4中csh.cshrc的配置问题
各位大虾:
我在XP系统下,采用VMware7.1.4虚拟机成功安装上Fedora14!在其上,我进行Gamit10.4的安装,成功运行并提示:
++++++++++++++++++
GLOBK installed
++++++++++++++++++
Create the gg link in your home directory to the version of
gamit/globk you just installed ? (y/n)
输入字母“y”,回车,显示相关内容。
下面就要进行“csh.cshrc的配置”,以使得gamit可以正常使用!
我的csh.cshrc文件确实存在,但是内容与相应的要配置的信息完全不同,相关的参考资料只说改个路径即可,非常疑惑。
问题是:我的csh.cshrc文件是正常的嘛?还是我要将配置信息完全输入到我的csh.cshrc文件后面即可?详请大侠解惑!
附:
我的csh.cshrc文件内容:
# /etc/cshrc
#
# csh configuration for all shell invocations.
# By default, we want this to get set.
# Even for non-interactive, non-login shells.
# Current threshold for system reserved uid/gids is 200
# You could check uidgid reservation validity in
# /usr/share/doc/setup-*/uidgid file
if ($uid > 199 && "`id -gn`" == "`id -un`") then
umask 002
else
umask 022
endif
if ($?prompt) then
if ($?tcsh) then
set promptchars='$#'
set prompt='[%n@%m %c]%# '
# make completion work better by default
set autolist
else
set prompt=\[$user@`hostname -s`\]\$\
endif
endif
if ( $?tcsh ) then
bindkey "^[[3~" delete-char
endif
bindkey "^R" i-search-back
set echo_style = both
set histdup = erase
set savehist = (1024 merge)
if ($?prompt) then
if ($?TERM) then
switch($TERM)
case xterm*:
if ($?tcsh) then
set prompt='%{\033]0;%n@%m:%c\007%}[%n@%m %c]%# '
endif
breaksw
case screen:
if ($?tcsh) then
set prompt='%{\033_%n@%m:%c\033\\%}[%n@%m %c]%# '
endif
breaksw
default:
breaksw
endsw
endif
endif
setenv MAIL "/var/spool/mail/$USER"
# Check if we aren't a loginshell and do stuff if we aren't
if (! $?loginsh) then
if ( -d /etc/profile.d ) then
set nonomatch
foreach i ( /etc/profile.d/*.csh )
if ( -r "$i" ) then
if ($?prompt) then
source "$i"
else
source "$i" >&/dev/null
endifFile: /etc/csh.cshrc Page 2 of 2
endif
end
unset i nonomatch
endif
endif
参考文章的配置信息:
# 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'
al