Linux 下运行GAMIT的问题及解决

我把已经编译过的GAMIT软件烤到/home/gamit/目录下

修改root目录下文件.bash_profile# .bash_profile# Get the aliases and functionsif [ -f ~/.bashrc ]; then. ~/.bashrcfi# User specific environment and startupprogramsPATH=$PATH:$HOME/bin:/home/gamit/com:/home/gamit/binHELP_DIR=/home/gamit/helpexport PATH HELP_DIRunset USERNAME这里有疑问PATH是系统环境变量,,HELP_DIR也是系统环境变量吗,还是用户自定义的?

第二个问题[root@localhost ~]# $PATHbash:/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_DIRbash: /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.hlpin 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 2PROGRAM gapr_to_l/globk apriori terminatingSTOP 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 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 子目录下面。

GAMIT使用指南 见

挫折其实就是迈向成功所应缴的学费。

Linux 下运行GAMIT的问题及解决

相关文章:

你感兴趣的文章:

标签云: