我把已经编译过的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
“没有那个文件或目录”说明什么问题第三个问题是运行命令,并没有打开帮助目录,为什么?**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 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
PROGRAM gapr_to_l/globk apriori terminating
STOP Incomplete runstring statement executed
拜托熟悉Linux或gamit软件的给看一下。问题补充: gamit是GPS数据处理软件,/home/gamit/help是命令的帮助文件目录
一些解决方法: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 aprioriWARNING: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 子目录下面。GAMIT使用指南 见 http://www.linuxidc.com/gamit/Linux下PATH环境变量设置GAMIT安装下载及使用指南相关资讯 Gamit
- Ubuntu下安装配置Gamit10.35总结 (04月01日)
- GAMIT软件操作手册PDF (02月18日)
- GAMIT/GLOBK软件中文使用说明书书 (02月13日)
| - Ubuntu Linux 下GAMIT/GLOBK 10.35 (03月01日)
- GAMIT/GLOBK 软件数据处理手册PDF (02月14日)
- GAMIT/GLOBK入门介绍及简单应用 (02月13日)
|
本文评论 查看全部评论 (0)