Installing SAC on WSL Ubuntu
SAC (Seismic Analysis Code) is a general purpose interactive program designed for the study of sequential signals, especially time series data. Here I documented how I installed SAC on my windows laptop.
Source code
- Go to IRIS to download SAC source code: https://ds.iris.edu/ds/nodes/dmc/software/downloads/sac/
ps. You’ll need to answer some questions to request the code.
Dependancy packages
- Install required packages >
sudo apt install libedit-dev libxml2-dev libcurl4-openssl-dev
Installation
- Create a home directory for SAC under: usr/local >
mkdir sac
- Unzip the file >
unzip .zip
- Move all the extracted files to SAC home directory.>
mv * ..usr/local/sac
- Go to “build” and check the
> cd build
> ../configure --prefix=/usr/local/sac
- Compile the programme >
make
- Install SAC >
sudo make install
Setting up environment variables
- Add the following lines to .bashrc:
export SACHOME=usr/local/sac
export SACAUX=${SACHOME}/aux
export PATH=${SACHOME}/bin:${PATH}
export SAC_DISPLAY_COPYRIGHT=1
export SAC_PPK_LARGE_CROSSHAIRS=1
export SAC_USE_DATABASE=0
- Execute .bashrc to save the environment variable setting >
source ~/.bashrc
Testing
sac
