[SciPy-user] Plea: Installing SciPy on Mac 10.4.9: _fftpack.so problems?

Robert Kern robert.kern@gmail....
Thu Mar 15 11:58:52 CDT 2007


Lawrence David wrote:
> Hi there,
> 
> I'm pulling the little hair I have out trying to install SciPy on my G4
> PPC running OS 10.4.9.
> 
> I've followed the instructions on the SciPy.org
> website: http://www.scipy.org/Installing_SciPy/Mac_OS_X.  I've got gcc
> 4.0.1 and gfortran (gnu95 -> 4.3).
> 
> Running build: "python setup.py build_src build_clib --fcompiler=gnu95
> build_ext --fcompiler=gnu95 build", yields a long error message that
> terminates with a litany of "Undefined symbols" and this last message:
> 
> 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
> 
> I've noticed several other folks have had similar error messages on this
> board, but none of the posted solutions worked for me.  If anyone could
> offer any suggestions on what to try, I'd love to hear them!  

It looks like you have LDFLAGS defined (thus, the -L/sw/lib). That *replaces*
all of the Python-specific linker flags that distutils provides.

> (I've even tried installing the SuperPack binary, which lies through its
> teeth when it says that it's installed correctly; import scipy still
> fails.  Perhaps my problem is that I'm using gfortran?  Can anyone tell
> me how to revert to g77?)

You can't with a Universal Python. It needs gcc 4, which requires gfortran, not g77.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco


More information about the SciPy-user mailing list