你好,游客 登录 注册 搜索
背景:
阅读新闻

Ubuntu Linux下安装GAMIT

[日期:2010-12-22] 来源:Linux社区  作者:kqlabc3334 [字体:大 中 小]

执行    ./install_software


安装程序install_software启动,搜索安装目录/opt/gamit10.34下的全部压缩文件,提示

GAMIT and GLOBK to be installed into /opt/gamit10.34

If you need help with command line options type CTL_C now and type

install_software -help on the command line

The compressed tarfiles will be removed after extraction of the

directories, but except for that, the script may be stopped and

rerun safely from any point. Tarfiles to be uncompressed:

     com.10.34.tar.Z etopo5.grd.10.0.tar example.10.34.tar.Z gamit.10.34.tar.Z help.10.34.tar.Z kf.10.34.tar.Z libraries.10.34.tar.Z maps.10.1.tar.Z tables.10.34.tar.Z

Continue ? (y/n)

输入字母“y”,开始解压缩安装文件,

.. uncompressing and extracting the directories:

Do you want to apply incremental updates: incremental_updates.080812.tar.Z incremental_updates.080919.tar.Z incremental_updates.081022.tar.Z

Continue ? (y/n)

输入字母“y”,开始解压缩安装文件,

.. applying incremental updates:

.. adding /opt/gamit10.34/com to your search path to continue installation

To execute GAMIT and GLOBK you will need to set your login path to

include /opt/gamit10.34/com /opt/gamit10.34/gamit/bin /opt/gamit10.34/kf/bin

You will also need the alias or link gg --> /opt/gamit10.34

Your Operating System type is: Linux

Your default awk version is: /usr/bin/awk

These are the default paths to X11 found in Makefile.config

X11LIBPATH: /usr/lib/X11

X11INCPATH: /usr/include/X11

Searching your system for X11 installation

Found these paths to X11 libs and includes on your system

X11LIBPATH: /usr/lib

X11INCPATH: /usr/include/X11

Are these correct for your system?

Continue? (y/n)

输入字母“y”,提示

GAMIT dimensions in /libraries/Makefile.config are set to

   maxsit = 55

   maxepc = 2880

   maxatm = 25

   maxsat = 32

Are these defaults found in Makefile.config correct?

If NOT edit the Makefile.config now before choosing to contine

Continue ? (y/n)

输入字母“y”,开始安装。安装最后会提示

++++++++++++++++++

GLOBK installed

++++++++++++++++++

Create the gg link in your home directory to the version of

gamit/globk you just installed ? (y/n)

输入字母“y”,回车,显示

Making required ~/gg link to newly installed software

ln -s -f /opt/gamit10.34 ~/gg

Don't forget to set your : path to include /opt/gamit10.34/gamit/bin and /opt/gamit10.34/kf/bin

                          : HELP_DIR environment variable in you shell profile

                            (in .cshrc/.tcshrc add: setenv HELP_DIR /opt/gamit10.34/help/)

                           : INSTITUTE evnironment variable in your shell profile

                            (in your .cshrc/.tcshrc add: setenv INSTITUTE where_i_work)

                            where_i_work is a 3 character identifier for your solutions

 

至此,软件已经安装成功。但要始软件能够正常使用,还要修改“主文件夹”下的“.cshrc”文件.该文件是用户的C SHELL配置文件,默认为隐藏文件。必须将Gamit的安装目录添加在里面,否则将无法在终端使用Gamit命令进行数据解算。

由于Ubuntu默认使用bash,所以,用户主目录下并没有csh的配置文件,你需要在自己的主文件夹下建立一个“.cshrc”文件,并输入内容如下


#


# This file is applicable to all C-shell users.

 


# set prompt

 


set prompt = "[`echo $cwd`]% "


set history = 50

 


set gamitpath = /opt/gamit10.34

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'


alias mv 'mv -i'


保存,OK,全部安装完成。在终端输入


doy


返回


DOY: Converts various date formats

 


DOY: Converts various date formats.

 


Runstring:


% doy <jd/year> <doy/month> <day> <hr> <min>


or


% doy <gps_week>W <gps_sow/gps_dow>


or


% doy <DecYear>Y

 


where jd is Julian date (assumed if only one argument)


      year is calender year


      doy is day of year (assumed if two arguments)


      month is month


      day is day of month.


      hr min is hrs and minutes of day (Only if ymd form used).


In the second form (i.e. W appended to the first value),


the entries are assumed to gps week no and the second entry


(optional) is either gps day of week (0-6) or seconds of


gps week.


NOTE: GPS Day of Week runs from 0-6 (Changed May 20, 1997).


In the third form with Y appended, the argument is taken as


deciminal year. (Versions after 2004/12/21 correctly account


for leap years in converting deciminal years back to Julian dates)

 


The conversions made are based on the number of arguments


passed.

 


NDOY: Version of doy of year which takes keyboard input in the


forms above. (^D ends program input).

 


Example: doy 92 200


Date 1992/07/18 0:00 hrs, DOY 200 JD 2448821.5000 MJD 48821.0000


GPS Week   653 Day of week 6, GPS Seconds 518400 Day of Week Sat


Decimal Year 1992.54372

 


Example: doy 654W 345600


Date 1992/07/23 0:00 hrs, DOY 205 JD 2448826.5000 MJD 48826.0000


GPS Week   654 Day of week 4, GPS Seconds 345600 Day of Week Thu


Decimal Year 1992.55738

 


***TODAY*** IS:


Date 2008/10/30 15:19 hrs, DOY 304 JD 2454770.1387 MJD 54769.6387


GPS Week 1503 Day of week 4, GPS Seconds 400786 Day of Week Thu


Decimal Year 2008.829614

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款