python - Error installing scipy on osx with brew -
i'm trying install scipy on osx 10.9 machine using brew installation keeps failing:
administrators-imac-3:sourcefind_python bill$ brew install scipy --default-fortran-flags ==> using homebrew-provided fortran compiler. may changed setting fc environment variable. ==> building alternative fortran compiler unsupported. warning: no fortran optimization information provided. may want consider setting fcflags , fflags or pass `--default-fortran-flags` option `brew install` if compiler compatible gcc. if default optimization level of compiler, ignore warning. ==> downloading https://downloads.sourceforge.net/project/scipy/scipy/0.13.3/scipy-0.13.3.tar.gz downloaded: /library/caches/homebrew/scipy-0.13.3.tar.gz ==> python setup.py build --fcompiler=gnu95 install --prefix=/usr/local/cellar/scipy/0.13.3_1 referenced from: /usr/local/cellar/gcc/4.8.3_1/libexec/gcc/x86_64-apple-darwin13.2.0/4.8.3/f951 reason: image not found gfortran: internal compiler error: trace/bpt trap: 5 (program f951) sh: line 1: 9597 abort trap: 6 /usr/local/bin/gfortran -wall -ffixed-form -fno-second-underscore -ff2c -o3 -funroll-loops -i/usr/local/lib/python2.7/site-packages/numpy/core/include -c -c scipy/fftpack/src/dfftpack/dcosqb.f -o build/temp.macosx-10.9-x86_64-2.7/scipy/fftpack/src/dfftpack/dcosqb.o error: command "/usr/local/bin/gfortran -wall -ffixed-form -fno-second-underscore -ff2c -o3 -funroll-loops -i/usr/local/lib/python2.7/site-packages/numpy/core/include -c -c scipy/fftpack/src/dfftpack/dcosqb.f -o build/temp.macosx-10.9-x86_64-2.7/scipy/fftpack/src/dfftpack/dcosqb.o" failed exit status 134 read this: https://github.com/homebrew/homebrew/wiki/troubleshooting if reporting issue please @ (not homebrew/homebrew): https://github.com/samueljohn/homebrew-python/issues i have gcc installed supposed contain gfortran:
administrators-imac-3:sourcefind_python bill$ brew install gfortran error: no available formula gfortran gnu fortran provided part of gcc, , can installed with: brew install gcc administrators-imac-3:sourcefind_python bill$ brew install gcc warning: gcc-4.8.3_1 installed should there:
administrators-imac-3:sourcefind_python bill$ gfortran gfortran: fatal error: no input files compilation terminated.
it looks it's having trouble fortran compiler. when use osx , homebrew scipy, install gfortran compile fortran files in scipy.
try doing:
brew install gfortran and trying again.
Comments
Post a Comment