linux 下运行gamit的问题

来源:百度知道 编辑:UC知道 时间:2024/07/07 20:27:10
我把已经编译过的gamit软件烤到/home/gamit/目录下
修改root目录下文件.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startupprograms
PATH=$PATH:$HOME/bin:/home/gamit/com:/home/gamit/bin
HELP_DIR=/home/gamit/help
export PATH HELP_DIR
unset USERNAME
这里有疑问PATH是系统环境变量,,HELP_DIR也是系统环境变量吗,还是用户自定义的?
第二个问题
[root@localhost ~]# $PATH
bash:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/home/gamit/com:/home/gamit/bin: 没有那个文件或目录
[root@localhost ~]# $HELP_DIR
bash: /home/gamit/help: is a directory
“没有那个文件或目录”说明什么问题
第三个问题是运行命令,并没有打开帮助目录,why

**ERROR** Opening help file. Check that enviroment variable HELP_DIR points to directory with help files.
IOSTAT error 2 occurred opening
/home/gamit/helpgapr_to_l.hlp
in gapr_to_l/globk apr

1、所有的环境变量都是为了被程序使用的,如果你的环境变量不被使用,那么他就是多余的。PATH 变量会被 bash 使用(也就是当前的命令行解释程序),所以他就不是多余的。你的 HELP_DIR 也会被后面的 gamit 使用,所以他也不是多余的。
系统环境变量和用户自定义的环境变量的区别就是他是不是被系统级别的程序使用。对于用户来说没有必要分的这么细,只要这个变量有用,那么就应该设置他。

2、PATH 变量是用来保存特殊数据的,不是用来运行的。

3、HELP_DIR 设为 /home/gamit/ 试试。或者干脆不设置试试。

PS:gamit 是啥?
----------------
IOSTAT error 2 occurred opening
/home/gamit/helpgapr_to_l.hlp
in gapr_to_l/globk apriori

WARNING:080725:2156:16.0 GAPR_TO_L/gapr_to_l/globk apriori: IOSTAT error opening file /home/gamit/helpgapr_to_l.hlp ERROR 2

貌似 help 相关的文件不在 help 子目录下面