CADWRDeltaModeling/pyhecdss

Linux install has dependency on libgfortran.so

dwr-psandhu opened this issue · 3 comments

Linux install on AWS fails as the 'C' libray has dependency upon libgfortran.so.3. I tried linking statically with libgfortran however that did caused other linking issues.

Need to figure out how to do this using conda recipes

The Workaround

In the meantime the workaround is to

conda install -c anaconda libgfortran

In addition there are crashes as numpy and pandas depend upon libgfortran.so.4 on most modern linux distros. The only way to resolve this would be to recompile the heclib against those libraries.

using g++ for linking seems to fix some of the crashes on linux
LD_SHARED=g++ python setup.py build_ext --inplace

Issue resolved by latest versions of gcc/gfortran/g++ and now runtime links with libgfortran.so.4 does not crash. Yay!