Bash script to install gcc-4.9.2 and boost-1.57 on CentOS 5.x, CentOS 6.x and Mac OS X. Languages: c++, c and go. Includes tcmalloc on linux.
To use it:
$ mkdir -p work/gcc
$ cd work/gcc
$ git clone https://github.com/jlinoff/gcc-4.9.2-boost-1.56.git 4.9.2
$ cd 4.9.2
$ make
For more detailed information see http://joelinoff.com/blog/?p=1514 (for 4.8.3).