I installed science/py27-scipy via portinstall on FreeBSD 9.2 with no issues, but when I start up Python and do
I googled around, and it seems to be a linking issue where the Fortran code isn't linked against the right GCC lib version. I confirmed the issue by compiling and running a Fortran "Hello, World." The fix is adding
when I call
It looks like I want to rebuild all Python ports with gcc48, but that's a painful process. Am I missing something?
import scipy, I get
Code:
ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by /usr/local/lib/gcc47/libgfortran.so.3 not found
I googled around, and it seems to be a linking issue where the Fortran code isn't linked against the right GCC lib version. I confirmed the issue by compiling and running a Fortran "Hello, World." The fix is adding
Code:
-rpath /usr/local/lib/gcc48
gfortran. This doesn't work so well for ports, and it opens a can up worms because my ports are currently getting built with GCC 4.2.1, i.e. the version FreeBSD shipped with. There's no gfortran for it.It looks like I want to rebuild all Python ports with gcc48, but that's a painful process. Am I missing something?