Sample Header Ad - 728x90

Issue installing GCC using homebrew (scipy package dependency)

1 vote
4 answers
5909 views
I am attempting to install the scipy (Scientific Python, including matplotlib) package using homebrew, and I noticed that it fails when it needs to install a dependency (gcc version 4.9.0). I attempted to install it on multiple OSX versions, and even a manual method, but the error always occurs at "make bootstrap" portion. **First method:**
brew tap Homebrew/versions
brew install gcc49
**Result:**
make: *** [all-multi] Error 2
make: *** [all-recursive] Error 1
make: *** [all-stage1-target-libsanitizer] Error 2
make: *** [stage-bubble] Error 2
make: *** [bootstrap] Error 2
**Second Method:**
wget ftp://ftp.gnu.org/gnu/gcc/gcc-4.9.1/gcc-4.9.1.tar.bz2
gunzip gcc*.bz2
tar -xf gcc*.tar
./configure --prefix=/usr/gcc-4.9.1 --with-gmp=/usr/local/Cellar/gmp/6.0.0a --with-mpr=/usr/local/Cellar/mpfr/3.1.2-p8 --with-mpc=/usr/local/Cellar/mpc/0.26 --program-suffix=4.9.1 --enable-languages=c,c++,fortran --with-system-zlib --enable-stage1-checking --enable-plugin --enable-lto --disable-multilib
**Result:** Similar output to first one at the end of output. Anyone know how to install this correctly, or do I need to use xcode? Will that even work with the scipy package installed through homebrew? **---------- UPDATE -----------** Tried suggestions. That is the "brew install gcc" and "brew install scipy" It fails at installing gcc either way, after doing those commands I get the following.
==> Installing dependencies for scipy: gcc, numpy
==> Installing scipy dependency: gcc
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-4.9.1/gcc-4.9.1.tar.bz2 
Already downloaded: /Library/Caches/Homebrew/gcc-4.9.1.tar.bz2
==> ../configure --build=x86_64-apple-darwin14.0.0 --prefix=/usr/local/Cellar/gcc/4.9.1 --enable-languages=c,c++,objc,obj-c++,fortran -
==> make bootstrap
mkdir common
mkdir common/.deps
config.status: executing default commands
make: *** [stage2-bubble] Error 2
make: *** [bootstrap] Error 2

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting 

These open issues may also help:
gcc: compatibility 10.10 (https://github.com/Homebrew/homebrew/pull/31466) 
gcc 4.8.3 bottle has invalid omp.h header (https://github.com/Homebrew/homebrew/issues/29670) 
MacOS.(gcc|clang|llvm)_version can return nil (https://github.com/Homebrew/homebrew/issues/18781) 
Asked by npderi (19 rep)
Aug 17, 2014, 09:54 PM
Last activity: Mar 14, 2025, 02:29 PM