Install GNU gcc 4.8.2 on CentOS 6.4

Posted by clsung on Tuesday, November 5, 2013

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<