Thread: installing SAC on UBUNTU

Started: 2011-01-13 20:46:44
Last activity: 2011-01-13 20:46:44
Topics: SAC Help
Abhey Ram Bansal
2011-01-13 20:46:44
Recently I was installing SAC on my laptop running on UBUNTU but when I
modified my ~/.bashrc file adding following two lines
export SACHOME=/usr/local/sac
source ${SACHOME}/bin/sacinit.csh
and after saving the file. I run following command
source ~/.bashrc
the following error message come.
No command 'setenv' found, did you mean:
Command 'netenv' from package 'netenv' (universe)

Could any one please help me sorting out the problem.
Thanking you
Abhey

  • Onur Tan
    2011-01-13 18:00:04
    Hi,


    You source Cshell file “sacinit.csh” in bash. This can be problem.
    bash can not understand Cshell code.

    o.

    Dr. Onur TAN
    ---------------------------------------------- 40.7866N 29.4500E ---------
    TÜBİTAK Marmara Araştırma Merkezi, Yer ve Deniz Bilimleri Enstitüsü
    TUBITAK Marmara Research Center, Earth and Marine Sciences Institute
    Gebze - Kocaeli - TURKEY


    On 13.01.2011 09:16, "Abhey Bansal" <abhey.bansal<at>gmail.com> wrote:

    Recently I was installing SAC on my laptop running on UBUNTU but when I modified my ~/.bashrc file adding following two lines
    export SACHOME=/usr/local/sac
    source ${SACHOME}/bin/sacinit.csh
    and after saving the file. I run following command
    source ~/.bashrc
    the following error message come.
    No command 'setenv' found, did you mean:
    Command 'netenv' from package 'netenv' (universe)

    Could any one please help me sorting out the problem.
    Thanking you
    Abhey







  • Onur Tan
    2011-01-13 18:02:30
    Hi again,

    use sacinit.sh for bash

    onur

    Dr. Onur TAN
    ---------------------------------------------- 40.7866N 29.4500E ---------
    TÜBİTAK Marmara Araştırma Merkezi, Yer ve Deniz Bilimleri Enstitüsü
    TUBITAK Marmara Research Center, Earth and Marine Sciences Institute
    Gebze - Kocaeli - TURKEY



    On 13.01.2011 09:16, "Abhey Bansal" <abhey.bansal<at>gmail.com> wrote:

    Recently I was installing SAC on my laptop running on UBUNTU but when I modified my ~/.bashrc file adding following two lines
    export SACHOME=/usr/local/sac
    source ${SACHOME}/bin/sacinit.csh
    and after saving the file. I run following command
    source ~/.bashrc
    the following error message come.
    No command 'setenv' found, did you mean:
    Command 'netenv' from package 'netenv' (universe)

    Could any one please help me sorting out the problem.
    Thanking you
    Abhey








23:52:58 v.22510d55