ubuntu下安装Gamit10.71

ubuntu安装GAMIT/GLOBK

  • 安装GAMIT
  1. 安装必须组件:sudo apt install gfortran make libx11-dev csh tcsh bc
  2. 准备文件:在用户目录下准备gamit10.71文件夹,包含以下内容:

• com.10.71.tar.gz

• gamit.10.71.tar.gz

• help.10.71.tar.gz

• kf.10.71.tar.gz

• libraries.10.71.tar.gz

• tables.10.71.tar.gz

• test_install.10.71.tar.gz

3.编译安装

解压安装脚本:tar xfvz com.10.71.tar.gz com/install_software

安装:com/install_software

若出现Continue?输入Y回车。

若出现Searching directories set in libraries/Makefile.config for X11 installation...

会让验证X11安装路径,检查是否正确,如果显示有路径则输入Y回车,否则可以另外打开一个终端,输入:gedit gamit10.71/libraries/Makefile.config

在终端输入:find / -name “libX11*”输出结果:

将X11LIBPATH换成libX11.a或libX11.so目录,如本例中的/usr/lib/x86_64-linux-gnu

同样在终端输入:find / -name “Xlib.h”,将X11INCPATH换成相应目录。

将以下设置分别改为

MAXSIT 80

MAXSAT 40

MAXATM 25

MAXEPC 8640

保存,在安装终端输入Y回车继续安装,等待安装完成

修改.bashrc文件:gedit ~/.bashrc

在文件末尾加入:(注意路径要与实际安装路径匹配)

PATH="/home/username/Documents/gamit10.71/com:/home/username/Documents/gamit10.71/gamit/bin:/home/username/Documents/gamit10.71/kf/bin:$PATH"; export PATH

HELP_DIR="/home/username/Documents/gamit10.71/help"; export HELP_DIR

如果需要绘图则可以安装GMT:sudo apt install gmt gmt-dcw gmt-gshhg

4.下载模型文件至tables:

otl_FES2004.grid,并在文件夹中终端执行:

rm -f ~gg/ tables/otl.grid

ln -s ~gg/tables/otl_FES2004.grid ~gg/tables/otl.grid

5.检查tables目录下是否有sites.defaults文件,若无新建一个,并复制内容

# File to control the use of stations in the processing

#

# Format: site expt keyword1 keyword2 ....

#

#  where the first token is the 4- or 8-character site name (GAMIT uses only

#  4 characters, GLOBK allows only 4 unless there are earthquakes or renames),

#  the second token is the 4-character experiment name, and the remaining

#  tokens, read free-format, indicate how the site is to be used in the processing.

#  All sites for which there are RINEX files in the local directory will be used

#  automatically and do not need to be listed.

#   

#  ftprnx = sites to ftp from rinex data archives.

#  ftpraw = sites to ftp from raw data archives.

#  localrx = site names used to search for rinex files on your local system.

#            (required in conjunction with rnxfnd path variable set in process.defaults).

#  xstinfo = sites to exclude from automatic station.info updating.    

#  xsite   = sites to exclude from processing, all days or specified days

#

# Replace 'expt' with your experiment name and edit the following to list sites needed from external archive

 all_sites expt  xstinfo 

 brus_gps expt ftprnx   

 graz_gps expt ftprnx   

 sofi_gps expt ftprnx

# templates for removing sites

 ttth_gps  expt xsite:1999_256-1999_278 xsite:1999_300-1999_365

6.测试:在测试目录(test_install)下运行runtest.sh,检测是否正确安装。

 

  • 0
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值