Sunday, July 17, 2011

How to install SAC on a Mac OSX 10

Few days ago I found my girlfriend having problem with installation of SAC -a program for seismic analisys- on MACOSX and I quickly made this entry so that everyone having the same can easily get rid of them: 
THE MAIN PROBLEM SITS IN THE SCRIPT PROVIDED WITH THE DISTRO OF SAC SOFT WHICH CONTAINS FEW ERRORS (it's a closed source soft anyway so none of my business to correct them and let people making profit out of it know)

how to use sac on macosx
 copy file tgz (you buy it) wherever you like 
tar xfvz sac.tgz
mv sac $HOME
cd $HOME
create the following files:

emacs -nw .bash_profile

if [ -f ~/.bashrc ]; 
  then
   source ~/.bashrc
fi


emacs -nw .bashrc

export SACHOME=$HOME/sac
export PATH=${PATH}:${SACHOME}/bin
export SACAUX=${SACHOME}/aux
export SAC_DISPLAY_COPYRIGHT=0
export SAC_USE_DATABASE =1
export SAC_PPK_LARGE_CROSSHAIRS=1

save close and enjoy SAC

In principle it's not needed to create the .bashrc but you can simply put everything in .bash_env which is the equivalent file used by "pear" OS but I'll never remember to look for .bash_profile next time I deal with my GF mac book so better to make it compatible with linux world ;)

ciao Alex barchiesi

1 comment: