Page 1 of 1

Difficulty installing SeaDAS 7.4 OCSSW packages on linux

Posted: Thu Mar 01, 2018 1:34 pm America/New_York
by amsayer
Hi all,

I've been trying to install SeaDAS 7.4 and OCSSW packages on a 64-bit linux machine here, and have run into a problem. I got the files and am going through the instructions here: https://seadas.gsfc.nasa.gov/downloads/

I have successfully installed SeaDAS 7.4 using the "SeaDAS Visualization Installers" instructions on that page, into a directory /data3/asayer/seadas-7.4, and added the path to my login shell. (Note the install ___location for SeaDAS isn't in my home directory here due to a space limitation.)

I then went on to try to install the ocssw packages (I want source code and SeaWiFS). I did steps 1, 2, and 3 on the above link (checking for software, download the installer script, make install_ocssw.py executable). However when I try to run it I get an error message. My understanding is that for the source code and SeaWiFS processing packages, I should invoke the command as follows:

./install_ocssw.py --install-dir=/data3/asayer/seadas-7.4/ocssw --git-branch=v7.4 --src --seawifs

However doing so gives this output:

Installing bundles.sha256sum (1 of 10)
--2018-03-01 13:31:06--  https://oceandata.sci.gsfc.nasa.gov/ocssw/bundles.sha256sum
Resolving oceandata.sci.gsfc.nasa.gov... xx.xxx.xx.xx, 2001:4d0:2418:128::84
Connecting to oceandata.sci.gsfc.nasa.gov|xx.xxx.xx.xx|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2992 (2.9K) [application/octet-stream]
Saving to: “bundles.sha256sum”

100%[================================================================================================================================>] 2,992       --.-K/s   in 0s     

2018-03-01 13:31:06 (133 MB/s) - “bundles.sha256sum” saved [2992/2992]

Installing common (2 of 10)
error: unknown switch `B'
usage: git checkout [options] <branch>
   or: git checkout [options] [<branch>] -- <file>...

    -q, --quiet           be quiet
    -b <new branch>       branch
    -l                    log for new branch
    -t, --track           track
    -2, --ours            stage
    -3, --theirs          stage
    -f, --force           force
    -m, --merge           merge
    --conflict <style>    conflict style (merge or diff3)
    -p, --patch           select hunks interactively

Error - Could not run "cd /data3/asayer/seadas-7.4/ocssw/run/data/common; git checkout -t -B v7.4 remotes/origin/v7.4 -q > /dev/null"


Do you know where I might be going wrong? I guess "error: unknown switch `B'" is the culprit but am not sure why/how to fix.

Cheers,

Andy

Difficulty installing SeaDAS 7.4 OCSSW packages on linux

Posted: Thu Mar 01, 2018 1:43 pm America/New_York
by amsayer
Also, since it is probably relevant, my OS is CentOS 6.9. And these are my installed software versions:

- git version 1.7.1
- curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.27.1 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
- GNU bash, version 4.1.2(2)-release (x86_64-redhat-linux-gnu)
- Python 2.6.6

Difficulty installing SeaDAS 7.4 OCSSW packages on linux

Posted: Thu Mar 01, 2018 1:55 pm America/New_York
by gnwiii
I've seen this before.   Check your version of git against the requirements.  Here, man git-checkout (for versions 2.11.0 or 2.16.2) has:
git checkout [-q] [-f] [-m] [[-b|-B|--orphan] <new_branch>] [<start_point>]

Difficulty installing SeaDAS 7.4 OCSSW packages on linux

Posted: Thu Mar 01, 2018 1:57 pm America/New_York
by amsayer
Thanks; I am not sure if we can update to a newer git here on this OS but can ask the sysadmin. What are the required versions? The page for requirements listed in the install instructions gives an error code: https://seadas.gsfc.nasa.gov/requirements.html

Difficulty installing SeaDAS 7.4 OCSSW packages on linux

Posted: Thu Mar 01, 2018 2:52 pm America/New_York
by amsayer
It turns out that replacing -B with -b in install_ocssw.py was sufficient to get it to run and install without any error messages. :)

Difficulty installing SeaDAS 7.4 OCSSW packages on linux

Posted: Thu Mar 01, 2018 7:25 pm America/New_York
by gnwiii
Good news.  The requirements page loads fine for me (here in Canada) at 7:30PM Eastern time.

Difficulty installing SeaDAS 7.4 OCSSW packages on linux

Posted: Fri Mar 02, 2018 8:00 am America/New_York
by OB.DAACx - SeanBailey
The link should be:
https://seadas.gsfc.nasa.gov/requirements/

Seems the .html extension was erroneously left on that link when we migrated the web server content management a while back.
We'll get it fixed soon.

Sean

Difficulty installing SeaDAS 7.4 OCSSW packages on linux

Posted: Fri Mar 02, 2018 1:19 pm America/New_York
by melliott
That link is fixed now.