Ocean Color Forum - Not logged in
Forum Ocean Color Home Help Search Login
Previous Next Up Topic SeaDAS / SeaDAS 6.x - General Questions / remedial questions for seadas 6.3 install (locked) (2412 hits)
By vlance Date 2011-11-16 21:47
Hi...
First, can someone please provide step-by-step instructions to "comment-out ..." as this message (below) instructs me to do?
Second, is there a chance that my mac (OSX 10.6.8) has "python" in it already?  how would I know?  Or, if I am asking this question, that means i must not have it, so I should surely download?

---------------------
bash-3.2$ source sds6.3_3c2dab5b.dnld
Please comment-out all lines which contain the string 'SEADAS' or 'seadas' in your
.bashrc, .bash_profile, .bash_login, and .profile files and re-source this file.
bash-3.2$
----------------------

As usual, I tend to get hung up on the simple things!
Thanks, V-
By elliott Date 2011-11-16 22:30
I'm not a Mac person, but think I can help here.

To "comment out" things in a shell file, open the file with a text editor (vi, emacs, nedit, TextMate, etc.).  For any occurrence you see of SEADAS or seadas, put a # in front of the line.  Then save the file and exit.

To "re-source" your changes, from a command line prompt (in a terminal window), enter the command:
  source FILE_TO_BE_SOURCED
where (probably obviously) FILE_TO_BE_SOURCED will be replaced with .bashrc, .bash_profile, or whatever file you just edited.

I believe Python is pre-installed on Mac OSX.  To find out, try one of these commands from a command line prompt in a terminal window:
  which python
or
  python -V
The which python command will report the pathname of the python executable if python is installed, e.g. /usr/bin/python; nothing is reported if it is not installed.  If Python is installed, the python -V command should report the version which is installed, e.g. Python 2.7.1.
By vlance Date 2011-11-17 21:43
Thanks for your response, Elliott.

1) Yes, indeed, I do have Python v 2.6.1 on my mac osx10.6.8 machine and I now know where to find it (so I understand python 2.6 should work but 2.7 is better - either way, at least I have something to start with)

2) Your suggestion for "commenting out" ... So, yes, I started with that approach before writing into the forum, but couldn't seem to find any files with these names, so I can't use the # in a text editor.  Are 'shell" files hidden somewhere special?  I have seadas -em v6.1 installed - someone else helped me, so they must have done this part without explaingin what they did.  I had tried to update when 6.2 and subsequent updates were released, but never managed to figure it out.  I realize this is very basic stuff, but I am in need of some different clues?

Thanks, Elliott, or anyone...
V-
By elliott Date 2011-11-17 22:13
1) Glad you found Python.

2) If I understand correctly, you're saying you can't find the .bashrc, .bash_profile, etc. files.

First, a side note about *nix systems (which Max OSX is).  Any file with a . at the front is considered "hidden" - i.e. it won't show up doing a regular ls.  You need to add the -a flag to get them to show in a directory listing:
  ls -a
It seems like finding a good Unix tutorial would be usefult to you.  Google found nearly 30 million for me.  I can't really recommend one over another, just try a few until you find one that reads well for you.

That said, all the files in question should be in your login/home directory, so if you to a ls -a command as soon as you log in, you should see the files.

BTW, "Elliott" is my last name, please call me "Matt"

HTH,

Matt Elliott
By vlance Date 2011-11-18 18:43
Thanks again, Matt.
Yes, I have learned a lot on my own from online tutorials, but sometimes I don't know what to search for.
I should be able to do now.
By WhiteG Date 2011-11-18 21:06
I can recommend several good online tutorials and realted reference materials:

1.  [url=] http://linuxcommand.org[/url]
2.  http://www.flossmanuals.net/command-line/
3.  http://tldp.org/LDP/abs/ Advance Bash Scripting (may be available as a package)
4.  if you are using Ubuntu or some other debian-based distro: debian-reference, should be available as a package
5.  http://plan9.bell-labs.com/who/dmr/hist.html -- many of the early unix documents are well written and
     remain relevant to modern linux.
Previous Next Up Topic SeaDAS / SeaDAS 6.x - General Questions / remedial questions for seadas 6.3 install (locked) (2412 hits)



Responsible NASA Official: Gene C. Feldman
Curator: OceanColor Webmaster
Authorized by: Gene C. Feldman
Updated: 27 November 2007
Privacy Policy and Important Notices NASA logo