转载于: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. mybatis框架中分页的实现

    2.分页的实现? 分页的时候考虑的问题: 分页的大小,分页的索引. 比如:分页的大小为10,分页的起始索引为1(索引从1开始) 第一页:1到10.    起始行号: (页的索引-1)*分页大小+1 结 ...

  2. 提高代码质量 CheckStyle FindBugs PMD

    提高代码质量-工具篇 注:这是一篇翻译文章,原文:How to improve quality and syntax of your Android code,为了理解连贯,翻译过程中我修改了一些陈述 ...

  3. Bootstrap 折叠(Collapse)插件

    折叠(Collapse)插件可以很容易地让页面区域折叠起来.无论您用它来创建折叠导航还是内容面板,它都允许很多内容选项. 如果您想要单独引用该插件的功能,那么您需要引用 collapse.js.同时, ...

  4. Win7下安装一个装逼文本编辑器Atom + activate-power-mode插件

    Atom是Github推出的一个文本编辑器,搜索一下大概是给Web前端用的,最近比较火的是他的一个插件activate-power-mode,可以实现打字屏振效果. 用来装装逼还是挺适合的,本来想试试 ...

  5. CAD2012安装错误

    安装CAD2012总是会出现各种错误,不能安装,特别是.NET Framework Runtime 4.0安装错误. 单独安装dotNetFx40_Full_x86_x64.exe会提示更高级的版本已 ...

  6. Angular JS将数据显示为两列(html)

    (数据为Array数组)使用AngularJS中ng-show="{{}}",其将数据按行分为奇数行和偶数行,$even是判断是否为奇数行[如果是则为true,不是则为false] ...

  7. Python 6 —— 异常

    Python 6 —— 异常 异常分类 AttributeError:调用不存在的方法 EOFError:遇到文件末尾引发异常 ImportError:导入模块引发异常 IndexError:列表越界 ...

  8. 转行IT行业的心路历程2

    2011/07-2016/12 11年毕业之后阴差阳错的到了宁波慈星股份,学习了针织机械.当初的想法很简单从沈阳到南方,因为南方小厂多机会多,因为我的目标就是当老板(呵呵,大部分的人的目标都是吧,现在 ...

  9. linux shell

    1.+到n for i in {1..n}doa=$(($a+$i))doneecho $a 2. 写一个脚本.输入如下效果 0 01 012 0123 01234 012345 0123456 01 ...

  10. javascript练习-定义子类

    function defineSubclass(superclass, //父类的构造函数 constructor, //新的子类的构造函数 methods, //实例方法:复制至原型中 static ...