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

Lawrence David ldavid@MIT....
Thu Mar 15 14:07:26 CDT 2007


Hot darn Batman - you nailed it!!

Much thanks,
- lawrence

http://www.stinkpot.org


On Mar 15, 2007, at 12:58 PM, Robert Kern wrote:

> 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
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20070315/f41dfcf0/attachment.html 


More information about the SciPy-user mailing list