设为首页 收藏本站
查看: 604|回复: 0

[经验分享] Ubuntu 12.04下GAMIT10.40安装说明

[复制链接]

尚未签到

发表于 2018-5-1 08:32:39 | 显示全部楼层 |阅读模式
  转载于: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>  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>  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.
  ......
  表明安装与配置成功。

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-454259-1-1.html 上篇帖子: VM下Ubuntu安装VMWare Tools 下篇帖子: 通过命令行,把自己的ubuntu升级到最新的版本!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表