Ubuntu系统平台下Gamit10.3下载及安装详解(3)

在完成上面的步骤过后,我们就可以开始Gamit的安装。

首先到Ubuntu系统中的opt文件夹下,建立一个名为Gamit_Globk的目录,然后将Gamit的源代码(先解压后)Copy到该文件夹下。

在终端中输入:cd /opt/Gamit_Globk进入安装目录,然后紧接着输入
./install_software或者输入csh install_software
安装程序install_software启动,搜索安装目录/opt/Gamit_Globk下的全部压缩文件,提示
GAMIT and GLOBK to be installed into /opt/Gamit_Globk
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.32.tar.Z etopo5.grd.10.0.tar example.10.32.tar.Z gamit.10.32.tar.Z help.10.34.tar.Z kf.10.32.tar.Z libraries.10.32.tar.Z maps.10.1.tar.Z tables.10.32.tar.Z
Continue ? (y/n)
输入字母“y”,开始解压缩安装文件,
.. uncompressing and extracting the directories:
Do you want to apply incremental updates: incremental_updates.080812.tar.Z incremental_updates.080919.tar.Z incremental_updates.081022.tar.Z
Continue ? (y/n)
输入字母“y”,开始解压缩安装文件,
.. applying incremental updates:
.. adding /opt/Gamit_Globk/com to your search path to continue installation
To execute GAMIT and GLOBK you will need to set your login path to
include /opt/Gamit_Globk/com /opt/Gamit_Globk/gamit/bin /opt/Gamit_Globk/kf/bin
You will also need the alias or link gg --> /opt/Gamit_Globk
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.34/libraries/目录,修改Makefile.config中的一组参数,原文中的
MAXSIT 50
MAXSAT 32
MAXATM 13
MAXEPC 2880
将MAXATM改为25。回到终端,
输入字母“y”,提示
GAMIT dimensions in /libraries/Makefile.config are set to
   maxsit =  50
   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”,开始安装。安装最后会提示
++++++++++++++++++
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/Gamit_Globk ~/gg
Don't forget to set your : path to include /opt/Gamit_Globk/gamit/bin and /opt/Gamit_Globk/kf/bin
                          : HELP_DIR environment variable in you shell profile
                            (in .cshrc/.tcshrc add: setenv HELP_DIR /opt/Gamit_Globk/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
----------------------------------------------------------------

我想各朋友在安装的时候有可能会出现如下所示的情况,比如说Error出现,说/usr/include/stdio.h中的getline函数冲突之类的,我在这里给出两种不是很成熟的做法:到上面所示的途径下找到该文件,然后打开,1)直接注释掉getline函数

2)给getline函数重新取个名字

如图所示:

Ubuntu系统平台下Gamit10.3下载及安装详解


这个问题是在我安装的时候出现的,我在英文的网站上看到了一些意见,然后得出的这种解决方法,大家如果有更好的方法,请指正!

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/25797.html