domingo, 17 de maio de 2015

SAC INSTALLATION

http://ds.iris.edu/ds/nodes/dmc/software/downloads/sac/

#sac
export SACHOME=/usr/local/sac
export PATH=$SACHOME/bin:$PATH
export SACAUX=$SACHOME/aux
export SACLIB=$SACHOME/lib/sacio.a
export SAC_USE_DATABASE=0
export SAC_DISPLAY_COPYRIGHT=1
export SAC_PPK_LARGE_CROSSHAIRS=1
DOWNLOAD SAC

Binary Installation

If you received a binary distribution of SAC, it expects to be installed at /usr/local/sac.
% tar -zxf sac-101.6_linux_x86_64.tar.gz -C /usr/local
Environment setup
SAC comes with a set of scripts to add the correct directories to your path and setup the environment variables properly. They are located in the bin directory within sac distribution. Follow the instructions based on the shell you are running.
sh / bash
To your ~/.profile or ~/.bashrc add:
source /usr/local/sac/bin/sacinit.sh
csh / tcsh
To your ~/.cshrc or ~/.tcshrc add:
source /usr/local/sac/bin/sacinit.csh
Either reinitializing your shell or logging out/logging in will setup your shell for using SAC.
Customization
You are free to copy the contents of the sacinit scripts to either of your shell's initialization files to customize the environment to your liking.

Running SAC

  • Error: sac: /lib64/libc.so.6: version 'GLIBC_2.14' not found (required by sac)
    Cause: Incompatible C Library
    Ubuntu 12.10 uses 2.14
    CentOS 6.4 uses 2.12
    Note: CentOS binary works on Ubuntu 12.10