Install pre-requirements:
% yum install gmp-devel mpfr-devel libmpc-devel
Download and extract gcc 4.8.2 source tar ball:
% curl -O ftp://ftp.gnu.org/gnu/gcc/gcc-4.8.2/gcc-4.8.2.tar.gz; tar zxf gcc-4.8.2.tar.gz
% cd gcc-4.8.2; ./configure --enable-languages=c,c++ --disable-multilib
Build and install:
% make; make install<