You are on page 1of 5

About Unix or Linux or Computer world

Posted on
Hello I will post about my experienced how to install GAMIT on ubuntu. GAMIT is one of GPS
scientific software. Why i am using ubuntu thats because ubuntu is the easiest linux ive ever try. I have
tried this on Ubuntu 10.10, 11.04, and 12.04 with GAMIT 10.4 and incremental update 12/04/02.
GAMIT need gfortran and X11 libraries on compiling plus c shell (csh) for install script. Another
optional software but needed for plotting in GAMIT is GMT (Generic Mapping Tool). You need basic
skill to use linux and ubuntu to install this software. Syntax and edit text are in red colour.
first thing to do is install prerequisites software for compiling process. Open terminal and type this on
your terminal
sudo apt-get update
sudo apt-get install csh tcsh gfortran libx11-dev
before install GMT install netcdf first. I prefer not using netcdf from ubuntu repository but compile
from raw and prefer using netcdf version 3. Download copy of netcdf from netcdf homepage.
1. unpack netcdf
tar -xzvf netcdf-3.6.3.tar.gz
2. move to folder that just unpacked
cd netcdf-3.6.3
3. I will install netcdf on /usr/local/netcdf
./configure prefix=/usr/local/netcdf
4. compile
make
5. install
sudo make install
6. edit PATH environment where netcdf installed
cd ~
gksu gedit .bashrc
add these line at the end of file
export PATH=$PATH:/usr/local/netcdf/bin
export NETCDFHOME=/usr/local/netcdf
7. save and quit
8. quit terminal
Go to ftp://ftp.soest.hawaii.edu using your browser or ftp program. Download gmt-4.5.8.tar.bz2, gshhs-
2.2.0.tar.bz2, and install_gmt.sh. Go to http://gmt.soest.hawaii.edu and click download from sidebar,
click install_form to get paramater for installing GMT or you can use my script here
place all downloaded file into one folder
1. Open terminal and go to folder where all downloaded
2. Make script executable
chmod +x install_gmt.sh
3. install
sudo ./install_gmt.sh GMT4param.txt
4. edit PATH environment
cd ~
gksu gedit .bashrc
add these line at the end of file
export PATH=$PATH:/usr/local/GMT/bin
5. save and quit
6. quit terminal
now install GAMIT
1. Open terminal
2. go to GAMIT directory
3. make install script executable
chmod +x install_software
4. edit install script
gedit install_software
5. find line 209 like below
set xincpath = `find $conf_xincpath/ -name Xlib.h -print |& grep -v Permission | awk -F/ {for
(i=2;i<=NF-1;i++) printf %s,/$i; printf \n} | sort -u` >& /dev/null
set xlibpath = `find $conf_xlibpath/ \( -name libX11.a -o -name libX11.so -o -name libX11.dylib \)
-print |& grep -v Permission | awk -F/ {for (i=2;i<=NF-1;i++) printf %s,/$i; printf \n} | sort -u`
>& /dev/null
edit to like this
set xincpath = /usr/include/X11
set xlibpath = /usr/lib/X11
6. save and quit
7. move gamit directory to /usr/local/gamit
8. Install
sudo ./install_software
follow the instruction and answer the questions with y or n
9. for Ubuntu 12.04 there will be error to solve that problem edit Makefile.config
cd libraries
gksu gedit Makefile.config
find line
# for Linux from 0.0.1 to 3.0.0 #
OS_ID Linux 0001 3000
# ASSIGMENTS
edit to like thiscd ~
# for Linux from 0.0.1 to 3.0.0 #
OS_ID Linux 0001 3500
# ASSIGNMENTS
10. save and quit, execute install script again
cd ..
sudo ./install_software
11. edit PATH environment
cd ~
gksu gedit .bashrc
add these line
export PATH=$PATH:/usr/local/gamit/gamit/bin
export PATH=$PATH:/usr/local/gamit/kf/bin
export PATH=$PATH:/usr/local/gamit/com
export HELP_DIR=/usr/local/gamit/help/
export INSTITUTE=UGM
12. save and quit
13. close terminal and finish

ps=please help me correcting my english :) and others


About these ads

Share this:
Twitter
Facebook9

Object 1

*
posted on
by laksonoade
filed under Scientific Software
1.

yoga
February 16, 2013 at 1:12 pm
Wah sip Dee sukses buatmu bro..sang master UNIX hehe
Reply
2. Vitaly
November 4, 2013 at 6:33 pm
Hi. I did everything you wrote, but
.. removing any existing Makefiles or archive files from libraries directories
/home/vital/gg/source/com/rmfresh: access denied.
.. removing any existing Makefiles or archive files from gamit directories
/home/vital/gg/source/com/rmfresh: access denied.
.. making libraries and gamit
/home/vital/gg/source/com/make_gamit: access denied.
Failure in make_gamit install_software terminated.
Tell me, please, where there may be an error? Kubuntu 13.10, 64-bit.
Reply
laksonoade
November 21, 2013 at 2:44 am
Vitaly,
Sorry for late reply
from the error acces denied usually this caused by user access problem.
did you execute with sudo command ?
and i never try to install on 2013 ubuntu family maybe thereis something different on it
I will try to install on Kubuntu 2013 next month when holiday cause i am busy right now
Thank you
Reply

3. Wilhelm Berrocal
November 6, 2013 at 10:42 pm
Wow! excelent post! I was looking for something like that, I gonna try with Xubuntu 12.04.3,
lets see how it works
Reply
4. Wilhelm Berrocal
February 4, 2014 at 3:22 am
Worked like a charm in Xubuntu 12.04.3, Thank you!
Reply
5. Wilhelm Berrocal
April 21, 2014 at 1:45 am
Hello again! tried with Kubuntu 14.04 and worked great!
Reply
6.

You might also like