Feed on
Posts
Comments

if you’re trying to install scipy on a mac and you get the following error when building:

collect2: ld returned 1 exit status
error: Command “/usr/local/bin/gfortran -L/sw/lib
build/temp.macosx-10.3-fat-2.5/build/src.macosx-10.3-fat-2.5/Lib/fftpack/_fftpackmodule.o
build/temp.macosx-10.3-fat-2.5/Lib/fftpack/src/zfft.o
build/temp.macosx-10.3-fat-2.5/Lib/fftpack/src/drfft.o
build/temp.macosx-10.3-fat-2.5/Lib/fftpack/src/zrfft.o
build/temp.macosx-10.3-fat-2.5/Lib/fftpack/src/zfftnd.o
build/temp.macosx-10.3-fat-2.5/build/src.macosx-10.3-fat-2.5/fortranobject.o
-L/usr/local/lib -L/usr/local/lib/gcc/powerpc-apple-darwin8.8.0/4.3.0
-Lbuild/temp.macosx-10.3-fat-2.5 -ldfftpack -lfftw3 -lgfortran -o
build/lib.macosx-10.3-fat-2.5/scipy/fftpack/_fftpack.so” failed with
exit status 1

try resolving by opening up your ~/.profile and commenting out the lines (if they exist) that begin:

export LDFLAGS=

export CFLAGS=

if, even after building and installing, you get “Expected in: dynamic lookup” errors involving flapack.so or minpack2.so, the problem is likely due to “Symbol not found: ___dso_handle” problems.

to fix those, you’re unfortunately going to rebuild.  first, get cctools here: ftp://gcc.gnu.org/pub/gcc/infrastructure/ (make sure it’s at least version 590.36).  following installation of cctools, repeat the building and installation process, while playing the bongos and spinning counter-clockwise.  with any luck, you’ll finally have fully working modules in scipy on your mac!


Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

Did I get this wrong? Let me know!

Trackback URI | Comments RSS

More blogs about http://desk.stinkpot.org:8080/tricks.