l2gen giop algorithm error
My aim is to work with General IOP algorithm.
I am starting with basic parameter sets.
* l2gen with l2prod=chlor_a ran sucessfully
* l2gen with l2prod="a_443_giop,bb_443_giop,aph_vvv_giop,chl_giop" is unsuccessful
The end of the log is below.
----
Setting pure water aw and bbw for GIOP.
412 4.640989e-03 3.327229e-03
.
.
.
2130 2.512733e+03 2.768182e-06
dyld: lazy symbol binding failed: Symbol not found: __ZNKSt5ctypeIcE13_M_widen_initEv
Referenced from: /Applications/seadas-7.0/ocssw/run/bin/macosx_intel/l2gen
Expected in: /usr/lib/libstdc++.6.dylib
dyld: Symbol not found: __ZNKSt5ctypeIcE13_M_widen_initEv
Referenced from: /Applications/seadas-7.0/ocssw/run/bin/macosx_intel/l2gen
Expected in: /usr/lib/libstdc++.6.dylib
Advised to run otool
-bash: otool: command not found
Google response
otool command moved in Mountain Lion
I have worked with xcode before, just not since my last rebuild. Mucking around with Objective-C
--> Choose to install xcode 4.6.2
Used this post as a guide
i installed xcode but i still dont have gcc in my terminal
After completing the command tool install I tried l2gen again
--> NO CHANGE
otool -L /Applications/seadas-7.0/ocssw/run/bin/macosx_intel/l2gen
2130 2.512733e+03 2.768182e-06
dyld: lazy symbol binding failed: Symbol not found: __ZNKSt5ctypeIcE13_M_widen_initEv
Referenced from: /Applications/seadas-7.0/ocssw/run/bin/macosx_intel/l2gen
Expected in: /usr/lib/libstdc++.6.dylib
dyld: Symbol not found: __ZNKSt5ctypeIcE13_M_widen_initEv
Referenced from: /Applications/seadas-7.0/ocssw/run/bin/macosx_intel/l2gen
Expected in: /usr/lib/libstdc++.6.dylib
Trace/BPT trap: 5
Suggested Disagnois
>uname -a
Darwin MacBook-Pro.local 12.3.0 Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64
>otool -L /Applications/seadas-7.0/ocssw/run/bin/macosx_intel/l2gen
/Applications/seadas-7.0/ocssw/run/bin/macosx_intel/l2gen:
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
/opt/local/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.17.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1094.0.0)
/opt/local/lib/gcc45/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
Alternative avenue explored.
I did have some success when I ran it against another version of l2gen. This version was from SeaDAS 7.0 beta, and I have performed a patch, as ftp://seadasuk.pml.ac.uk/seadas/seadas/updates/update_01/README.txt for macosx_intel.
otool -L /projects/SD/ocssw/run/bin/macosx_intel/l2gen
/projects/SD/ocssw/run/bin/macosx_intel/l2gen:
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
/opt/local/lib/gcc45/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.14.0)
WhiteG response
WhiteG response refers to 'port' command which I don't have. Checked out MacPorts software, well beyond my usual unix dabbling.
Investigated solution not requiring MacPorts to be downloaded.
Did not gain much insight.
Installed MacPorts, unlike 'otool', the port command is not a diagnostic but a program.
Ran
sudo port -v selfupdate
sudo port install gcc47
* l2gen with l2prod="a_443_giop,bb_443_giop,aph_vvv_giop,chl_giop" SUCCESSFUL