adam-m-jcbs / xrb-sens-datashare

A repository for sharing intermediate and final data products in machine and/or human-readable formats coming out of the JINA-CEE xrb reaction rate sensitivity project.
1 stars 0 forks source link

Fix Download Error on Macs (possibly others) #1

Open adam-m-jcbs opened 4 years ago

adam-m-jcbs commented 4 years ago

Zac discovered an error that seems to do with sed versions/capabilities in the gs_gs1826...sh script.

The environment was an older Mac. Zac and I are both looking into it as we can.

adam-m-jcbs commented 4 years ago

Zac came through. I'm noting his solution/workaround here.

I will see if there's a more portable way to write the wget command, but if that proves to be too much work, we can add to the documentation how Zac got around the issue.

Relevant SO: https://stackoverflow.com/questions/43696304/how-do-i-fix-sed-illegal-option-r-in-macos-sierra-android-build

Mac workaround:

brew install gnu-sed
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"

The exact path may depend on Mac OS version? It would certainly vary among linux distros, but maybe brew always installs to same place on all Macs, by default at least?