Ocean Color Forum - Not logged in
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.
As usual, I tend to get hung up on the simple things!
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:
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:
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.
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...
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:
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"
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.