Thread: Trying to install SAC in Ubuntu

Started: 2016-06-08 01:46:37
Last activity: 2016-06-08 13:35:35
Topics: SAC Help
Hugo Loyola
2016-06-08 01:46:37
I am doing as follows:

#The first step is to expand the .tar.gz file
#and I get this
# /home/hugo/Sismos/sac



#at the ~/sac/bin I have files
#sacinit.csh and sacinit.sh

#the README instructions say: ... and the sacinit file is modified accordingly.

#In the bin folder I have sacinit.csh and sacinit.sh, in these two files I did:

setenv SACHOME /home/hugo/Sismos/sac #at sacinit.csh

export SACHOME=/home/hugo/Sismos/sac #at sacinit.sh

#then gedit ~/.cshrc adding the lines
setenv SACHOME /home/hugo/Sismos/sac
source ${SACHOME}/bin/sacinit.csh

#After saving and exiting the file, enter
source ~/.cshrc
#and happen this:
No command 'setenv' found, did you mean:
Command 'netenv' from package 'netenv' (universe)
setenv: command not found
bash: /bin/sacinit.csh: No such file or directory

#also I did:
gedit ~/.bashrc

#and add to last the lines:
export SACHOME=/home/hugo/Sismos/sac
. ${SACHOME}/bin/sacinit.sh

#then saving and exiting the file

#then . ~/.bashrc

#and happen
bash: ./home/hugo/Sismos/sac/bin/sacinit.sh: No such file or directory

After all these steps, still I do not get SAC working, please, any suggestions
  • Milton Plasencia
    2016-06-08 13:35:35
    let see your steps:
    See below

    On Jun 8, 2016, at 03:46, Hugo Loyola <hugoe.loyolat<at>gmail.com> wrote:

    I am doing as follows:

    #The first step is to expand the .tar.gz file
    OK
    #and I get this
    # /home/hugo/Sismos/sac
    OK



    #at the ~/sac/bin I have files
    #sacinit.csh and sacinit.sh
    Ubuntu, as other Linux use bash shell, so you must use sacinit.sh
    remember that sacinit.sh must have executable permission, so in the directory /home/hugo/Sismos/sac/bin run the command:
    chmod +x sacinit.sh

    #the README instructions say: ... and the sacinit file is modified accordingly.
    Depending where was untar the the distribution

    #In the bin folder I have sacinit.csh and sacinit.sh, in these two files I did:

    setenv SACHOME /home/hugo/Sismos/sac #at sacinit.csh
    not will be used, setenv is used in other Unix systems (Sun etc)

    export SACHOME=/home/hugo/Sismos/sac #at sacinit.sh
    OK, but here also you must also set the other variables as my anterior e-mail, in your case
    export SACHOME=/home/hugo/Sismos/sac
    export PATH=${PATH}:${SACHOME}/bin
    export SACAUX=${SACHOME}/aux


    #then gedit ~/.cshrc adding the lines
    Bad
    setenv SACHOME /home/hugo/Sismos/sac
    replace by:
    export SACHOME=/home/hugo/Sismos/sac

    source ${SACHOME}/bin/sacinit.csh
    replace by:
    source ${SACHOME}/bin/sacinit.sh
    or
    source /home/hugo/Sismos/sac/bin/sacinit.sh

    #After saving and exiting the file, enter
    source ~/.cshrc
    OK.

    #and happen this:
    No command 'setenv' found, did you mean:
    Correct, your Linux not known the setenv command
    Command 'netenv' from package 'netenv' (universe)
    setenv: command not found
    The same as anterior
    bash: /bin/sacinit.csh: No such file or directory
    perhaps sacinit.csh is not executable, but you must to use sacinit.sh


    #also I did:
    gedit ~/.bashrc

    #and add to last the lines:
    export SACHOME=/home/hugo/Sismos/sac
    OK
    . ${SACHOME}/bin/sacinit.sh
    OK, but between the dot and $ must be a blank

    #then saving and exiting the file

    #then . ~/.bashrc
    Also here . ~/.bashrc

    #and happen
    bash: ./home/hugo/Sismos/sac/bin/sacinit.sh: No such file or directory
    Here or sacinit.sh is not in the PATH or it is not executable.

    HTH,

    M.

    After all these steps, still I do not get SAC working, please, any suggestions

    ----------------------
    SAC Help (http://ds.iris.edu/message-center/topic/sac-help/)

    Sent via IRIS Message Center (http://ds.iris.edu/message-center/)
    Update subscription preferences at http://ds.iris.edu/account/profile/


23:31:18 v.22510d55