Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选

首页 / 操作系统 / Linux / Ubuntu下安装配置Gamit10.35总结

一、使用root用户登录Ubuntu安装完成如需使用root身份登录,可打开终端输入以下命令:#设置root密码1 sudo passwd root#切换到root用户1 sudo -s#输入:(注意空格)1 sudo gedit/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf#在弹出的编辑框里输入:50-ubuntu.conf:1 [SeatDefaults]3 autologin-user=root5 user-session=ubuntu7 greeter-show-manual-login=true#保存关闭,回到终端窗口,输入:1 sudo passwd root#回车,并输入两次密码#重启,按root用户登录,密码为上一步设置的密码二、准备工作(root权限下)输入以下命令(不分先后),完成Ubuntu的初步配置。1 apt-get install gfortran//安装gfortran4.2编译器及其依赖的全部软件包;2 3 apt-get install libx11-dev//安装 libx11-dev软件包及其依赖的全部软件包;4 5 apt-get install csh//安装csh;6 7 apt-get install tcsh//安装tcsh;8 9 apt-get install gmt//安装gmt4.2及其相关的软件包。 完成后输入‘chsh’然后输入‘/bin/csh’,重启,使用echo $SHELL验证准备工作三、安装GAMIT10.35首先在/opt目录(用于存放可选的应用程序)下建立GAMIT/GLOBK的安装目录,并将安装文件拷贝释放到该目录下。终端中输入 1 Searching your system for X11 installation 23 Found these paths to X11 libs and includes on your system 45 X11LIBPATH: /usr/lib 67 X11INCPATH: /usr/include/X11 89 Are these correct for your system?10 11 Continue? (y/n) 开始安装安装进行到 1 Searching your system for X11 installation 23 Found these paths to X11 libs and includes on your system 45 X11LIBPATH: /usr/lib 67 X11INCPATH: /usr/include/X11 89 Are these correct for your system?10 11 Continue? (y/n)打开1 /opt/gamit_globk/libraries/Makefile.config修改内容:maxatm = 13改为25,确认继续直至安装完成四、.cshrc的配置主文件夹中新建.cshrc文件,输入如下配置信息 1 # set prompt 23 set prompt = "[`echo $cwd`]% " 45 set history = 50 67 #set system path 89 set path = (. /bin /sbin /etc /usr/bin /usr/sbin /usr/bin/X11 /usr/X11R6/bin $path)10 11 set path = (. /usr/local/bin /usr/local/sbin /usr/local/lib /usr/lib $path)12 13 setenv PATH "/usr/sbin:/sbin:${PATH}"14 15 setenv MANPATH/usr/local/man:/usr/X11R6/man16 17 setenv LIBPATH/usr/lib:/usr/local/lib18 19 #set Gamit/Globk path20 21 set gamitpath = /opt/gamit_globk22 23 set path = (. $gamitpath/gamit/bin $gamitpath/kf/bin $gamitpath/com $path)24 25 setenv HELP_DIR $gamitpath/help/26 27 #set GMT path28 29 set gmtpath = /usr/lib/gmt/30 31 set path = (. $gmtpath/bin $gmtpath/include $gmtpath/lib $gmtpath/man $gmtpath/share $gmtpath/www $path)32 33 set path = (. /etc/gmt /usr/include/gmt /usr/lib/gmt /usr/share/gmt /usr/share/doc/gmt $path)34 35 setenv MANPATH$gmtpath/man36 37 #set full domain for GAMIT shell-scripts used to transfer data (sh_get_nav, sh_get_rinex, sh_get_orbits, and sh_get_hfiles)38 39 set host = `hostname | awk -F. "{print $1}"`40 41 set dom= `hostname | awk -F. "{print $2}"`42 43 if( $dom == "" ) then44 45alias hostname "echo $host.mit.edu"46 47 endif48 49 # set alias50 51 alias cd"cd !*; set prompt = "[`echo $cwd`]% ""52 53 alias pwd "echo $cwd"54 55 alias ls"ls --classify"56 57 alias ll"ls -l"58 59 alias la"ls -a"60 61 alias rm"rm -i"62 63 alias mv"mv -i"保存关闭终端中输入1 Source .cshrc配置完成五、使用doy命令验证返回,安装完成 1 DOY: Converts various date formats 23 45 DOY: Converts various date formats. 67 89 Runstring:10 11 % doy <jd/year> <doy/month> <day> <hr> <min>12 13 or14 15 % doy <gps_week>W <gps_sow/gps_dow>16 17 or18 19 % doy <DecYear>Y20 2122 23 where jd is Julian date (assumed if only one argument)24 25 year is calender year26 27 doy is day of year (assumed if two arguments)28 29 month is month30 31 day is day of month.32 33 hr min is hrs and minutes of day (Only if ymd form used).34 35 In the second form (i.e. W appended to the first value),36 37 the entries are assumed to gps week no and the second entry38 39 (optional) is either gps day of week (0-6) or seconds of40 41 gps week.42 43 NOTE: GPS Day of Week runs from 0-6 (Changed May 20, 1997).44 45 In the third form with Y appended, the argument is taken as46 47 deciminal year.(Versions after 2004/12/21 correctly account48 49 for leap years in converting deciminal years back to Julian dates)50 5152 53 The conversions made are based on the number of arguments54 55 passed.56 5758 59 NDOY: Version of doy of year which takes keyboard input in the60 61 forms above.(^D ends program input).62 6364 65 Example: doy 92 20066 67 Date 1992/07/180:00 hrs, DOY 200 JD2448821.5000 MJD48821.000068 69 GPS Week 653 Day of week6, GPS Seconds 518400 Day of Week Sat70 71 Decimal Year1992.5437272 7374 75 Example: doy 654W 34560076 77 Date 1992/07/230:00 hrs, DOY 205 JD2448826.5000 MJD48826.000078 79 GPS Week 654 Day of week4, GPS Seconds 345600 Day of Week Thu80 81 Decimal Year1992.5573882 8384 85 ***TODAY*** IS:86 87 Date 2015/12/29 14:09 hrs, DOY 363 JD2457386.0902 MJD57385.590288 89 GPS Week1877 Day of week2, GPS Seconds 223790 Day of Week Tue90 91 Decimal Year2015.993398GAMIT10.6安装包下载  http://www.linuxidc.com/Linux/2016-02/128333.htmGAMIT相关阅读:http://www.linuxidc.com/GAMIT/GAMIT10.4及最新版本的GAMIT下载在Linux公社5号FTP服务器,具体下载见 http://www.linuxidc.net/thread-1186-1-1.html更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2本文永久更新链接地址