Thread: How to run SAC Software

Started: 2023-02-08 16:45:10
Last activity: 2023-04-25 09:42:55
Topics: SAC Help
mobilord@duck.com
2023-02-08 16:45:10
I downloaded "sac-102.0-linux_x86_64" but how do I run it and how do I view
the SAC file?

  • Prasad Kasulanati
    2023-04-25 09:42:55
    Hello!
    You have mentioned the platform that you are using to install as Linux.
    I am giving the process in case of installing SAC on Linux (Ubuntu):


    Step 1: Get the source code on request
    Step 2: Download the SAC source code as a gzipped tar file and save it to
    a local directory.
    Step 3: In Terminal, go to the directory where you saved the tgz file and
    extract it:

    *ta**r xzvf sac-102.0-linux_x86_64.tar.gz*
    This will produce a folder called *sac-102.0-linux_x86_64* in
    your current working directory

    Step 4: Install dependencies:
    Your machine needs to be updated and upgraded, so that there
    will be no issues while running the SAC programme.
    You will also need to install the ncurses, gcc and x11
    packages. For that use the following lines of commands in the terminal.

    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install gcc
    sudo apt-get install ncurses-dev
    sudo apt-get install libx11-dev

    Step 5: Adding SACHOME to $PATH:
    In order to run SAC you need to assign SAC path for that add
    these lines to ~/.bashrc:( replace */usr/local* with your working directory
    or pwd from sac folder)

    * export SACHOME=/usr/local/sac*

    * . ${SACHOME}/bin/sacinit.sh alias
    'sac=$SACHOME/bin/sac $MACRODIR/init.m'*

    Save ~/.bashrc file and close the file.

    Step 6: Edit your sacinit.sh file from $working dir/sac/bin. replace the
    default */usr/local/sac* with your */working dir/sac *and save sacinit.sh
    and close the file

    Step 7: Close the terminal you have been working in.

    Step 8: Launch a new terminal, and type sac, Now you should now be set up
    to run SAC.

    Let me know if you encounter any difficulties.


    *Kasulanati Venkata Rama Hanumanth Prasad,*
    Project Associate - I ,
    Ph D Scholar,
    Geo Sciences & Technology Division (GSTD),
    CSIR-North East Institute of Science &Technology (CSIR-NEIST),
    Jorhat : 785 006, Assam.

11:49:39 v.b4412d20