2021-05-12 14:32:11
Ubuntu 12.04下GAMIT10.40安裝說明
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
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
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
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.
......
表明安裝與設定成功。
相關文章