转载于:http://www.itxuexiwang.com/a/liunxjishu/2016/0225/164.html?1456481297

Ubuntu 12.04下GAMIT10.40安装步骤:

1 首先就是Gamit软件——gamit.tar.gz的准备,大概64M;
2 将下载的gamit.tar.gz复制到 opt/gamit10.40/下面,这里需要建立文件夹10.40,sudo mkdir gamit10.40;
3 安装Cshell。sudo apt-get install csh;
4 安装gfortran。sudo apt-get install gfortran;
5 安装libx11-dev库支持。sudo apt-get install libx11-dev;
6 安装Gamit软件, 进入gamit目录,首先还是要解压的,sudo tar –xvf gamit.tar.gz;然后需要给安装文件 install_software文件可执行权限,命令为chmod +x install_software,然后在该目录下面输入./install_software进行安装。
8 系统提示相关:(在root权限下)

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

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.40.tar.gz etopo5.grd.10.0.tar.gz example.10.40.tar.gz gamit.10.40.tar.gz help.10.40.tar.gz kf.10.40.tar.gz libraries.10.40.tar.gz maps.10.1.tar.gz tables.10.40.tar.gz

Continue ? (y/n)
“ 输入字母 y”,开始解压缩安装文件

...

tables/nutabl.2009

tables/nutabl.2008

Do you want to apply incremental updates: incremental_updates.090928.tar.gz

Continue ? (y/n)

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

.. applying incremental updates:

.. adding /opt/gamit10.40/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.40/com /opt/gamit10.40/gamit/bin /opt/gamit10.40/kf/bin You will also need the alias or link gg ??> /opt/gamit10.40

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#p#分页标题#e#

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)

此时先不要继续安装,进入/opt/gamit10.40/libraries/目录,修改Makefile.config中的一组参数,原文中的

MAXSIT 60

MAXSAT 32

MAXATM 13

MAXEPC 2880

将MAXATM改为25。回到终端,

“ 输入字母 y”,提示

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

maxsit =  60

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”,开始安装。期间会出现如下问题:
Running unimake to create Makefile for comlib

System name:  Linux jeydragon-VirtualBox 3.0.0-13-generic #22-Ubuntu SMP Wed Nov 2 13:25:36 UTC 2011 i686 i686 i386 GNU/Linux#p#分页标题#e#

System release number translated to  3203

OSID Linux 3203 not found in Makefile.config - remove Makefile and STOP

Failure in make_gamit -- install_software terminated

解决方法:修改opt/gamit10.40/libraries下的Makefile.config文件夹,找到

# ----- for Linux from 0.0.1 to 3.0.0  -- #

OS_ID Linux 0001 3000

将其修改为:

# ----- for Linux from 0.0.1 to 3.0.0  -- #

OS_ID Linux 0001 3203

问题就得到解决了。

9 安装最后会提示
++++++++++++++++++

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.40 ~/gg

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

: HELP_DIR environment variable in you shell profile

(in .cshrc/.tcshrc add: setenv HELP_DIR /opt/gamit10.40/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#p#分页标题#e#

10 至此,软件已经安装成功。但要始软件能够正常使用,还要修改主文件夹下的 .bshrc”文件.打开终端,进入主文件夹(home),输入 gedit .bshrc,此时会进入.bshrc的文档,复制下面的内容到文档中:
export PATH=$PATH:/home/xinsui/GNSS_SOFT/gamit10.40/gamit/bin:/home/xinsui/GNSS_SOFT/gamit10.40/kf/bin:/home/xinsui/GNSS_SOFT/gamit10.40/com:/home/xinsui/GNSS_SOFT/gamit10.40/gamit/com
export HELP_DIR=/home/xinsui/GNSS_SOFT/gamit10.40/help/
export INSTITUTE='SOG'

11 验证是否成功,doy命令,如提示:
 
DOY: Converts various date formats
 
DOY: Converts various date formats.

......

表明安装与配置成功。

Ubuntu 12.04下GAMIT10.40安装说明的更多相关文章

  1. Ubuntu 12.04下PostgreSQL-9.1安装与配置详解(在线安装)

    说明:       我是用root用户在终端登陆的,如果是非root用户,那在命令前需要加上"sudo",你懂的... 第一步:在Ubuntu下安装Postgresql       ...

  2. Ubuntu 12.04下mysql的安装与配置

    转自:http://blog.csdn.net/ichsonx/article/details/9285935 准备  0. 获取 mysql-5.5.15-linux2.6-i686.tar.gz ...

  3. Ubuntu 12.04下jdk的安装与配置

    由于要开始在linux下学习jsp的开发,所以就准备自己动手配置一下jdk和tomcat jdk 下载地址: http://www.oracle.com/technetwork/java/javase ...

  4. Ubuntu 12.04下PostgreSQL-9.1安装与配置详解(在线安装) [转]

    说明:       我是用root用户在终端登陆的,如果是非root用户,那在命令前需要加上"sudo",你懂的... 第一步:在Ubuntu下安装Postgresql       ...

  5. ubuntu 12.04下 eclipse的安装

    1首先下载有关的JDK sudo apt-get install openjdk-7-jre 由于是源内的东西,所以只许执行上面这一步,就自动帮你下载 安装 以及配置,无需繁琐的操作. 这里ubunt ...

  6. 在Ubuntu 12.04下采用apt-get的方法安装Qt4

    在Ubuntu 12.04下采用apt-get的方法安装Qt4 注:之前发表的一篇博客是采用编译源码的方式安装Qt4,这是很有用的方式,因为源码安装对于所有系统都是通用的,其次,在使用交叉编译器的时候 ...

  7. Angularjs学习---angularjs环境搭建,ubuntu 12.04下安装nodejs、npm和karma

    1.下载angularjs 进入其官网下载:https://angularjs.org/‎,建议下载最新版的:https://ajax.googleapis.com/ajax/libs/angular ...

  8. Ubuntu 12.04 下安装 Eclipse

    方法一:(缺点是安装时附加openjdk等大量程序并无法去除,优点是安装简单) $ sudo apt-get install eclipse 方法二:(优点是安装内容清爽,缺点是配置麻烦)1.安装JD ...

  9. Ubuntu 12.04下安装QQ 2012 Beta3(转)

    Ubuntu 12.04下安装QQ 2012 Beta3   由于wine的发展非常迅速.现在网上的利用老版本的wine来安装QQ2012的教程已经有些过时了.实际上操作起来非常简单: 第一步:Ctr ...

随机推荐

  1. 类Arrays

    package p2; import java.util.Arrays; import java.util.List; public class ArraysDemo { public static ...

  2. XML解析、使用TreeView呈现效果

    首先用到TXMLDocument控件: Memo来显示XML文件, TreeView来呈现元素: 源代码: Procedure TForm2.Button1Click(Sender: TObject) ...

  3. iOS 取绝对值函数

    1.abs(a) 处理int类型a的取绝对值 2.fabsf(a)  处理float类型a的取绝对值 3.fabs(a)   处理double类型a的取绝对值

  4. Win7 64位 VS2015环境编译NanoVG

    书接上回,Cairo编译好使用后,发现简单的每帧画100条随机线段就卡得不行,装了个gooreplacer( http://liujiacai.net/gooreplacer/ )上stackover ...

  5. 20151013 C# 第一篇 流程控制语句

    20151013 流程控制语句: 1.选择语句 if … else if...else 选择语句 if(布尔表达式){  语句块:} if(布尔表达式){  语句块1:}else{  语句块2:} i ...

  6. 看来System.dll是没法剔除依赖了

    今天花了半天时间将System.Xml换成了Mono.Xml 想干掉System.dll发现不行了,System.Net以及System.IO都在这下面,还有protobuf-net也逃不掉这个 算啦 ...

  7. ViewPager及PagerTabStrip 的使用详解

    ViewPager 就是一个滑屏效果的一个控件,使用比较简单.使用过程思路流程基本如下: 在需要添加的ViewPager的布局文件中添加ViewPager控件--->准备好滑屏所有的View-- ...

  8. rails4.2~devise邮箱测试

    1.由于网站无需验证,只需一封欢迎邮件,在config/intiailzers/devise.rb里面配置 config.allow_unconfirmed_access_for = nil #2.d ...

  9. window.showModalDialog返回值和window.open返回值实例详解

    最近在谷歌浏览器下发现一个问题,就是使用谷歌浏览器已经不兼容window.showModalDialog了,所以还是改成使用window.open(). 一.window.showModalDialo ...

  10. 非对称加密RSA的应用及在C#中的实现

    quote: http://www.cnblogs.com/happinessCodes/archive/2010/07/27/1786404.html   一说到数据的加密,常常会涉及到这几个单词: ...