ocssw v7.5 linked library & other pathing issues
Posted: Mon May 21, 2018 6:18 pm America/New_York
I have installed the v7.5 branch from the OCSSW git repos manually as I did previously with v7.4 with the exception of bin3 which [ has been changed to opt ](https://oceancolor.gsfc.nasa.gov/forum/oceancolor/topic_show.pl?tid=8640), and am seeing [pathing issues](https://github.com/USF-IMARS/imars_dags/issues/56).
When trying to use `modis_GEO.py` for instance, I get the following error:
```
-bash-4.2$ export OCSSWROOT=/opt/ocssw
-bash-4.2$ source /opt/ocssw/OCSSW_bash.env
-bash-4.2$ OUT_PATH=/srv/imars-objects/airflow_tmp/proc_myd01_to_myd0_otis_l2_gom_20180111T202000_geofile
-bash-4.2$ /opt/ocssw/run/scripts/modis_GEO.py --output=$OUT_PATH /srv/imars-objects/airflow_tmp/A2018011.2020.hdf
Directory /opt/ocssw/var does not exist.
Using current working directory for storing the ancillary database file: ancillary_data.db
/opt/ocssw/run/bin/linux_64/geogen_modis: error while loading shared libraries: libdf.so.0: cannot open shared object file: No such file or directory
*** ERROR: geogen_modis failed to produce a geolocation file.
*** Validation test failed for geolocation file: proc_myd01_to_myd0_otis_l2_gom_20180111T202000_geofile
ERROR: MODIS geolocation processing failed.
```
Some notable information regarding this error:
* `/opt/ocssw/var` indeed does not exist, but `/ot/ocssw/run/var` does, and that is the path v7.4 was using previously.
* `libdf.so.0` doesn't exist, but I do have `/opt/ocssw/run/opt/linux_64/lib/libdf.so.0.0.0`
I put some quick symlinks in place to workaround these and just ran into more errors. I have little experience linking libraries though, so perhaps there is some easy fix.
When trying to use `modis_GEO.py` for instance, I get the following error:
```
-bash-4.2$ export OCSSWROOT=/opt/ocssw
-bash-4.2$ source /opt/ocssw/OCSSW_bash.env
-bash-4.2$ OUT_PATH=/srv/imars-objects/airflow_tmp/proc_myd01_to_myd0_otis_l2_gom_20180111T202000_geofile
-bash-4.2$ /opt/ocssw/run/scripts/modis_GEO.py --output=$OUT_PATH /srv/imars-objects/airflow_tmp/A2018011.2020.hdf
Directory /opt/ocssw/var does not exist.
Using current working directory for storing the ancillary database file: ancillary_data.db
/opt/ocssw/run/bin/linux_64/geogen_modis: error while loading shared libraries: libdf.so.0: cannot open shared object file: No such file or directory
*** ERROR: geogen_modis failed to produce a geolocation file.
*** Validation test failed for geolocation file: proc_myd01_to_myd0_otis_l2_gom_20180111T202000_geofile
ERROR: MODIS geolocation processing failed.
```
Some notable information regarding this error:
* `/opt/ocssw/var` indeed does not exist, but `/ot/ocssw/run/var` does, and that is the path v7.4 was using previously.
* `libdf.so.0` doesn't exist, but I do have `/opt/ocssw/run/opt/linux_64/lib/libdf.so.0.0.0`
I put some quick symlinks in place to workaround these and just ran into more errors. I have little experience linking libraries though, so perhaps there is some easy fix.