转载于: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. Trie树的创建、插入、查询的实现

    原文:http://blog.chinaunix.net/xmlrpc.php?r=blog/article&uid=28977986&id=3807947 1.什么是Trie树 Tr ...

  2. QQ在线客服JS代码,自适应漂浮在网页右侧

    <html><head><meta http-equiv="Content-Type" content="text/html; charse ...

  3. 一行css代码调试中学到的javascript知识,很有意思

    现在到处都是JavaScript,每天都能知道点新东西.一旦你入了门,你总能从这里或是那里领悟到很多知识.今天我想分享Addy Osmani的一行代码 ,这行代码对于你调试你的CSS是很有用的.为了可 ...

  4. 高性能 CSS3 动画

    注:本文出自腾讯AlloyTeam的元彦,文章也可以在github上浏览.请尊重版权,转载请注明来源,多谢-- 高性能移动Web相较PC的场景需要考虑的因素也相对更多更复杂,我们总结为以下几点: 流量 ...

  5. group_concat函数详解

    来自: http://hchmsguo.iteye.com/blog/555543 MySQL中group_concat函数 完整的语法如下: group_concat([DISTINCT] 要连接的 ...

  6. git ignore

    我最初将整个项目push到远程仓库,但是项目代码里面有大文件,从而传输太费时间了. 看网上的说法,可以通过ignore文件达到不提交某些文件的效果,尝试了一下发现不行. 后来尝试清除缓存 $ git ...

  7. shell循环

    for循环 for循环一般格式为: for 变量 in 列表 do command1 command2 ... commandN done 列表是一组值(数字.字符串等)组成的序列,每个值通过空格分隔 ...

  8. [LeetCode] 452 Minimum Number of Arrows to Burst Balloons

    There are a number of spherical balloons spread in two-dimensional space. For each balloon, provided ...

  9. runtime记录

    前言: 最初对于runtime的了解其实只停留在,知道这是一组C的方法,知道消息机制中会把方法调用转成objc_msgSend(theObject,@selector(objectMethod)).随 ...

  10. Word文字处理器发展演变

    随着信息技术的不断发展,以前书面化的信笺,笔记,书籍以及作业演变成现在不断更新的电子化Word文档. Word是目前世界上最流行.最常用的文字编辑,排版软件,使用它不仅可以提高文档的编辑效率,在修改时 ...