There are a lot of installation blogs for GAMIT/GLOBK software under Ubuntu, but there are not many installation processes under CentOS. Here is a description of my installation process. The environment used is CENTOS6.5,GAMIT version 10.5.
Tip: Before you install the Gamit software, you need to understand the Linux
cd
Command.1. Configure the Shell
Because GAMIT/GLOBK uses C shell language scripting, it is essential to run the Gamit/globk,c shell language interpreter. In fact, the CentOS operating system already has a C shell-compatible tcsh installed. Before installing Gamit, we'd better change the shell environment of the system to TCSH (if you know how the shell works, you'll be able to run the C shell script without changing the default shell environment.) But if you want to be able to expand Gamit's functionality in the future by writing a C shell script that is consistent with the Gamit style, switching the system default Shell to TCSH will be convenient.
First look at your default shell and run the command at the terminal:
echo $SEHLL
If the system output is not/bin/tcsh, then you need to switch the shell, Terminal Run command:
chsh
Re-enter:
/bin/tcsh
You can change the default shell to TC Shell.
Log off after changing the shell, re-login the system
2. Installing the necessary components 2.1. Installing the Libx11-devel
Libx11-devel is a necessary graphics library for running Gamit. The terminal executes the following command to install the graphics library (if prompted without permission, add sudo to the command).
yum install libX11-devel
2.2. Install FTP tool (for automatic data download)
The terminal executes the following command to install the FTP download tool.
yum install ftp
3. Compile and install GAMIT3.1. Assigning permissions to the installation package
Copy the unpacked installation package to/OPT (of course, any path you would like to install Gamit, take/opt for example)
Then execute:
sudo chmod 755 -R gamit10.5
Assign executable permissions to the directory where the Gamit resides.
3.2. Perform the installation
Go to the gamit10.5 folder:
cd ./gamit10.5
To execute the installation script:
./install_software
In the prompt installation parameters:
Maxsit 60
Maxsat 32
MAXATM 13
Maxepc 2880
, enter N.
Open the Makefile.config file under the Libraties folder,
You need to modify the following two places
Maxsit 60
Maxsat 32
MAXATM 13
Maxepc 2880
These numbers are the parameters you need for your task.
Interpretation: Maxsit (maximum number of stations, depending on your solution tasks); Maxsat (maximum number of satellites, generally not modified); MAXATM (maximum tropospheric delay, recommended for repair) MAXEPC (maximum solution number, usually not modified)
#-----for Linuxfrom 0.0.1 to 3.0.0--#
Os_idlinux 0001 3000
For
#-----for Linuxfrom 0.0.1 to 3.0.0--#
os_id Linux 0001 2632
The change value is the kernel version number of your Linux, and the modified value depends on the situation, my system is centos6.5. You can open a new terminal and execute uname -a
commands to see the version of the system you are using.
After you change the above, save. Re-execute:
./install_software
All inquiries select Y, after successful installation will prompt:
++++++++++++++++
GLOBK installed
++++++++++++++++
3.3. Configure the Run path
Go to the/etc folder, edit the CSH.CSHRC file, and add the following code at the bottom:
set gamitpath = /opt/gamit10.5
setenv PATH "$gamitpath/gamit/bin:$gamitpath/kf/bin:$gamitpath/com:$PATH"
setenv HELP_DIR $gamitpath/help/
Save, exit.
At this point, the GAMIT/GLOBK software installation is complete. You can run the Doy command check under Terminal.
Another: To fully use the features of the Gamit software, such as drawing, you also need to install software such as Ghostscript,imagemagic and GMT.
Install GAMIT10.5 under CentOS OS