incompatible libgfortran version?
I am using a python code that someone else wrote that links to some fortran libraries. I can get the code to work with my system installation of python (Python 2.7.2+ default, Oct 4 2011, 20:06:09 [GCC 4.6.1] on linux2). My operating system is Ubuntu 11.10. When I try to use the same python code in sage, I get the following error:
OSError: /opt/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/libgfortran.so.3: version `GFORTRAN_1.4' not found (required by [omitting the full path on this website for privacy reasons]/librefprop.so)
ctypes.cdll.LoadLibrary(u"[omitting the full path on this website for privacy reasons]/librefprop.so")
command is run.
I really don't know anything about fortran or how ctypes works, but it appears as though the sage version that I am using has a different libgfortran version than my operating system used when I created the fortran object files from the fortran code and linked them with the gfortran command. Here is some output from the command "dpkg --list | grep compiler|grep fortran"
ii gfortran 4:4.6.1-2ubuntu5 GNU Fortran 95 compiler ii gfortran-4.6 4.6.1-9ubuntu3 GNU Fortran 95 compiler
Is there some way I can tell sage to use the same libgfortran as my system python distribution? Will updating sage resolve this issue?