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