转载于: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. 【转】Beanstalkd 队列简易使用

    Beanstalkd一个高性能分布式内存队列系统   之前在微博上调查过大家正在使用的分布式内存队列系统,反馈有Memcacheq,Fqueue, RabbitMQ, Beanstalkd以及link ...

  2. STM32 使用DMA+DAC+TIMER 输出正弦波

    之前已经简单论述过,根据我个人菜鸟的了解与认识,对之前的知识进行整理回顾: DMA:我的理解就是一个通道,或者是一座桥梁.在静态内存到静态内存,或者外设到静态内存间的一个通讯的通道.建立这个通道的好处 ...

  3. [转]MySQL关键性能监控(QPS/TPS)

    原文链接:http://www.cnblogs.com/chenty/p/5191777.html 工作中尝尝会遇到各种数据库性能调优,除了查看某条SQL执行时间长短外,还需要对系统的整体处理能力有更 ...

  4. react通过自己的jsx语法将两者放在一起通过虚拟dom来渲染

    目前较为流行的react确实有很多优点,例如虚拟dom,单向数据流状态机的思想.还有可复用组件化的思想等等.加上搭配jsx语法和es6,适应之后开发确实快捷很多,值得大家去一试.其实组件化的思想一直在 ...

  5. 自话自说——POI使用需要注意一个地方

    2015.12.1  天气 不怎么好   心情跟天气一样.知道为什么吗,因为昨晚一晚没睡你懂吗... 今天在用POI操作excel的时候,遇到了一个很恶心的地方,这个地方真的有那种让我不相信编程的感觉 ...

  6. python中协程的使用示例

    例子1 把字符串分割为列表 def line_splitter( delimiter = None ): print( 'ready to split' ) result = None while T ...

  7. C#与Swift异步操作的差异

    作为一个从C#转到Swift的小菜鸡...最近做一个简单的请求API解析Json数据的小程序上碰到一堆小问题.尤其是在异步请求的时候,用惯了C#的async/await写法,在写Swift的时候也按着 ...

  8. iOS进阶_地图定位

    一.定位步骤 1.Xcode自带地图,直接先引入头文件 #import <CoreLocation/CoreLocation.h> 2.CLLocation框架中的CLLocationMa ...

  9. angular文件引入带来的绑定问题

    <script src="http://apps.bdimg.com/libs/angular.js/1.4.6/angular.min.js"></script ...

  10. CentOS 7 安装 vmware-tools

    [原创]标题:<CentOS 7 安装 vmware-tools>:作者:肖雪峰,QQ:35360657. 用 VMware Workstation 11 新安装了CentOS 7虚拟机, ...