Thread: Installing SAC

Started: 2017-05-26 19:49:28
Last activity: 2017-05-29 17:46:02
Topics: SAC Help
Claudia Mariana Flores
2017-05-26 19:49:28
Hello, I'm trying to install SAC. I have modified the file sacinit.csh and sacinit.sh.
For the file sacinit.csh I changed: setenv SACHOME /home/claudia/sac.
For the file sacinit.sh I changed: export SACHOME=/home/claudia/sac.
Then I write in my terminal gedit ~/.cshrc . It was an empty file, I addded
setenv SACHOME /home/claudia/sac
source ${SACHOME}/bin/sacinit.csh
I opend the file ~/.basrc, And I added at the end:
export SACHOME=/home/claudia/sac
. ${SACHOME}/bin/sacinit.sh

Then I write in terminal:
source ${SACHOME}/bin/sacinit.csh .
I says that the command setenv doesn't exist. And that appears the next line:
bash: /claudia/home/sac/bin/sacinit.csh: The file or the directory don't exist.
When I write:
. ~/.bashrc
Appears:
bash: .~/.bashrc: the file or directory don't exist

I would be glad if you help me with this problem.
  • Milton Plasencia
    2017-05-27 04:57:09
    Hi,

    the environmental variable SETENV is used in Solaris systems,

    on Linux you must to use sacinit.sh script that use export.

    so, in Linux run sourcing sacinit.sh

    if ~/.bashrc not exit in your home directory, perhaps exits ~/.bash_profile
    do, ls -la to list the hidden files in your $HOME directory.

    Cheers,

    M.




    On May 26, 2017, at 21:49, Claudia Mariana Flores <cm.flores.ruiz<at>gmail.com> wrote:

    Hello, I'm trying to install SAC. I have modified the file sacinit.csh and sacinit.sh.
    For the file sacinit.csh I changed: setenv SACHOME /home/claudia/sac.
    For the file sacinit.sh I changed: export SACHOME=/home/claudia/sac.
    Then I write in my terminal gedit ~/.cshrc . It was an empty file, I addded
    setenv SACHOME /home/claudia/sac
    source ${SACHOME}/bin/sacinit.csh
    I opend the file ~/.basrc, And I added at the end:
    export SACHOME=/home/claudia/sac
    . ${SACHOME}/bin/sacinit.sh

    Then I write in terminal:
    source ${SACHOME}/bin/sacinit.csh .
    I says that the command setenv doesn't exist. And that appears the next line:
    bash: /claudia/home/sac/bin/sacinit.csh: The file or the directory don't exist.
    When I write:
    . ~/.bashrc
    Appears:
    bash: .~/.bashrc: the file or directory don't exist

    I would be glad if you help me with this problem.

    ----------------------
    SAC Help | http://ds.iris.edu/message-center/topic/sac-help/ | Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

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


    • Claudia Mariana Flores
      2017-05-26 20:22:17
      Thank you so much, I wrote sacinit.sh in the terminal (while I was at the bin folder) and it worked.
    • Claudia Mariana Flores
      2017-05-26 21:15:11
      Hi again, I 've just realized that I have to write in terminal:
      claudia@claudia-Satellite-L855:~/sac/bin$ source sacinit.sh
      and
      claudia@claudia-Satellite-L855:~/sac/bin$ sacinit.sh
      everytime that I want to use the program.

      Is it normal?
    • Nikola
      2017-05-29 17:46:02


      ----- Messaggio originale -----
      Da: "Milton Plasencia" <mpplasencia<at>gmail.com>
      Inviato: ‎26/‎05/‎2017 21:59
      A: "SAC Help" <sac-help<at>lists.ds.iris.edu>
      Oggetto: Re: [sac-help] Installing SAC

      Hi,

      the environmental variable SETENV is used in Solaris systems,

      on Linux you must to use sacinit.sh script that use export.

      so, in Linux run sourcing sacinit.sh

      if ~/.bashrc not exit in your home directory, perhaps exits ~/.bash_profile
      do, ls -la to list the hidden files in your $HOME directory.

      Cheers,

      M.




      On May 26, 2017, at 21:49, Claudia Mariana Flores <cm.flores.ruiz<at>gmail.com> wrote:

      Hello, I'm trying to install SAC. I have modified the file sacinit.csh and sacinit.sh.
      For the file sacinit.csh I changed: setenv SACHOME /home/claudia/sac.
      For the file sacinit.sh I changed: export SACHOME=/home/claudia/sac.
      Then I write in my terminal gedit ~/.cshrc . It was an empty file, I addded
      setenv SACHOME /home/claudia/sac
      source ${SACHOME}/bin/sacinit.csh
      I opend the file ~/.basrc, And I added at the end:
      export SACHOME=/home/claudia/sac
      . ${SACHOME}/bin/sacinit.sh

      Then I write in terminal:
      source ${SACHOME}/bin/sacinit.csh .
      I says that the command setenv doesn't exist. And that appears the next line:
      bash: /claudia/home/sac/bin/sacinit.csh: The file or the directory don't exist.
      When I write:
      . ~/.bashrc
      Appears:
      bash: .~/.bashrc: the file or directory don't exist

      I would be glad if you help me with this problem.

      ----------------------
      SAC Help | http://ds.iris.edu/message-center/topic/sac-help/ | Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

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


      ----------------------
      SAC Help | http://ds.iris.edu/message-center/topic/sac-help/ | Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

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

23:09:18 v.22510d55