Mac OS X Yosemite Version 10.10.1

Updating gcc on Mac OS X can be very tricky. The current version of gcc on my mac was 4.2.1. I used homebrew to install the latest version brew install gcc, which installed 4.9.2, but checking gcc —version still showed 4.2.1. I followed instructions from a couple of blog posts to get the system point to 4.9.2 but they did not seam to be successful.

$ gcc --version
Configured with: —prefix=/Applications/ —with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix

So I decided to manually install the latest version of gcc from

=> Visit: and select a mirror
=> I picked:
=> clicked on releases:
=> selected
=> downloaded gcc-4.9.2.tar.gz

Open iTerm/Terminal and cd into the download and install (took me about 45 minutes)

$ cd ~/Downloads/gcc-4.9.2
$ ./configure; make; make install