http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-7.5.0/gcc-7.5.0.tar.xz yum install bzip2 wget gcc gcc-c++ gmp-devel mpfr-devel libmpc-devel make zlib zlib-devel ./contrib/download_prerequisites mkdir build cd build ../configure --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --enable-gnu-indirect-function --with-tune=generic --disable-multilib make -j4 make install mv /usr/bin/gcc /usr/bin/gcc-4.8.5 mv /usr/bin/g++ /usr/bin/g++-4.8.5 mv /usr/bin/c++ /usr/bin/c++-4.8.5 update-alternatives --install /usr/bin/gcc gcc /usr/local/bin/gcc 30 --slave /usr/bin/g++ g++ /usr/local/bin/g++ --slave /usr/bin/c++ c++ /usr/local/bin/c++