下载地址:http://mirrors.opencas.org/gnu/gcc/gcc-6.4.0/
yum group install "Development Tools"
yum install gmp-devel mpfr-devel libmpc-devel glibc-devel libgcc gcc-c++
tar -xzvf gcc-6.4.0.tar.gz
cd gcc-6.4.0
sh contrib/download_prerequisites
mkdir gcc-build
cd gcc-build
../gcc-6.4.0/configure -v --enable-languages=c,c++ --disable-multilib --prefix=/usr/local/gcc-6.4.0
make -j30
mkdir -p /usr/local/gcc-6.4.0
make install
/usr/local/gcc-6.4.0/bin/gcc --version