感谢支持
我们一直在努力

Fedora成功安装GAMIT10.4步骤

GAMIT相关阅读:http://www.linuxidc.com/GAMIT/


GAMIT10.4下载在Linux公社5号FTP服务器,具体下载见 http://www.linuxidc.net/thread-1186-1-1.html


1.root登录


   a.输入su然后回车


   b.输入非管理员登录密码


   c.vi /etc/pam.d/gdm(auth required pam_succeed_if.so user != root quie前加#t注释掉)、点击键盘i、加入#、点击Esc


   d.shift+: 后输入wq保存退出


   e.vi /etc/pam.d/gdm-password(#auth required pam_succeed_if.so user != root quie前加#t注释掉)、点击键盘i、加入#、点击Esc


   f.shift+: 后输入wq保存退出


   然后重起即可以root登录(登录密码为安装时提示的root用户名登录输入的密码)


2.yum install tcsh


   yum install gcc


   yum install gcc-gfortran


   yum install gmt


   yum install libX11*(bash下安装)


3.chsh


   更改路径/bin/csh后重新启动Fedora


  echo $SHELL


  响应路径为/bin/csh即安装tcsh成功


4.Gamit安装


  安装前将install中的libx11_a修改为libx11_so


  /libraries/Makefile.config的MAXATM 13改为25


  将stdio.h中的getline改为get_line


  /install_software


5.配置csh.cshrc(该文件放入/etc/下)


# /etc/csh.cshrc: system-wide .cshrc file for csh(1) and tcsh(1)

# set prompt

#set prompt = “[`echo $USER@$cwd`]% “

set history = 50

#set system path

set path = (. /bin /sbin /etc /usr/bin /usr/sbin /usr/bin/X11 /usr/X11R6/bin)

set path = (/usr/local/bin /usr/local/sbin /usr/local/lib /usr/lib $path)

setenv PATH “/usr/sbin:/sbin:${PATH}”

setenv MANPATH  /usr/local/man:/usr/X11R6/man

setenv LIBPATH  /usr/lib:/usr/local/lib

#set Gamit/Globk path

set gamitpath = /opt/gamit10.4

set path = ($gamitpath/gamit/bin $gamitpath/kf/bin $gamitpath/com $path)

setenv HELP_DIR $gamitpath/help/

setenv _POSIX2_VERSION 199209

#set GMT path

set gmtpath = /usr/lib/gmt

set path = ($gmtpath/bin $gmtpath/include $gmtpath/lib $gmtpath/man $gmtpath/share $gmtpath/www $path)

set path = (/etc/gmt /usr/include/gmt /usr/lib/gmt /usr/share/gmt /usr/share/doc/gmt $path)

setenv MANPATH  “$gmtpath/man:$MANPATH”

#set full domain for GAMIT shell-scripts used to transfer data (sh_get_nav, sh_get_rinex, #sh_get_orbits, and
#  sh_get_hfiles)

set host = `\hostname | \awk -F. ‘{print $1}’`

set dom  = `\hostname | \awk -F. ‘{print $2}’`

if( $dom == ” ) then

   alias hostname ‘echo $host.mit.edu’

endif

# set alias
# alias cd  ‘cd \!*; set prompt= ‘[`echo $USER@$cwd`]%”
alias pwd ‘echo $cwd’

alias ls  ‘ls –classify’
alias ll  ‘ls -l’
alias la  ‘ls -a’
alias rm  ‘rm -i’
alias mv  ‘mv -i’
alias cls ‘clear’


其中主要涉及红色部分的路径修改(gamit的安装路径)


6.doy测试安装是否成功


   能显示本机当前日期所在的年积日及安装成功


7.gftp下载软件安装,更新tables比较方便


   yum install gftp


8.接下来就是数据下载及解算的步骤了。

赞(0) 打赏
转载请注明出处:服务器评测 » Fedora成功安装GAMIT10.4步骤
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏