Thread: Mac OS X Install

Started: 2011-07-15 23:38:53
Last activity: 2011-07-15 23:38:53
Topics: SAC Help
James Sokolowski
2011-07-15 23:38:53
Folks,

I've placed my "sac" folder in /Applications and am trying to modify my X11 bash shell to enable running SAC.

First: There is no ~/.bashrc file on my system, so I vi'd it, added the lines, and wrote it to that location. When I type:

" source ~/.bashrc "

I get a bunch of:

" bash: setenv: command not found "

errors. Since my ~/.bashrc file only has the two lines:

export SACHOME=/Applications/sac
source ${SACHOME}/bin/sacinit.csh

I'm not sure why I'm seeing these errors.

I'm a "brand spankin' new Mac person" so don't have a great feel for the OS yet. Also, being summer many of the students who could help me with this are gone.

Does anybody have ideas what is going wrong here and how I can fix this.

Thanx tons
Jim

James Sokolowski, PhD
Research Scientist - Earth Sciences
Rice University, Houston, Texas 77005
713-348-3331 / JSokolowski<at>Rice.edu






  • Derek Schutt
    2011-07-15 22:46:49
    Hi James,

    I forget the details, but there are some mixups between bash and csh in
    the provided instructions.

    Try

    source ${SACHOME}/bin/sacinit.sh

    And also, I think you have to edit sacinit.sh because there are a couple
    csh-like commands that have to be changed for bash to like them. Like
    I think you may have to change

    export SAC_DISPLAY_COPYRIGHT 1

    to

    export SAC_DISPLAY_COPYRIGHT=1

    and so on.

    Hope that helps,

    Derek

    On 07/15/2011 03:38 PM, James Sokolowski wrote:
    Folks,

    I've placed my "sac" folder in /Applications and am trying to modify my X11 bash shell to enable running SAC.

    First: There is no ~/.bashrc file on my system, so I vi'd it, added the lines, and wrote it to that location. When I type:

    " source ~/.bashrc"

    I get a bunch of:

    " bash: setenv: command not found "

    errors. Since my ~/.bashrc file only has the two lines:

    export SACHOME=/Applications/sac
    source ${SACHOME}/bin/sacinit.csh

    I'm not sure why I'm seeing these errors.

    I'm a "brand spankin' new Mac person" so don't have a great feel for the OS yet. Also, being summer many of the students who could help me with this are gone.

    Does anybody have ideas what is going wrong here and how I can fix this.

    Thanx tons
    Jim

    James Sokolowski, PhD
    Research Scientist - Earth Sciences
    Rice University, Houston, Texas 77005
    713-348-3331 / JSokolowski<at>Rice.edu





    _______________________________________________
    sac-help mailing list
    sac-help<at>iris.washington.edu
    http://www.iris.washington.edu/mailman/listinfo/sac-help


    --
    --------------------------
    Derek Schutt
    Asst. Prof.
    Colorado State University
    http://warnercnr.colostate.edu/~schutt/CSU_web/index.htm
    http://warnercnr.colostate.edu/seismo-wiki/index.php/Main_Page
    970-491-5786
    322 Natural Resources Building
    Campus Delivery 1482
    Fort Collins, CO 80523-1482


04:30:40 v.01697673