[Linux] CentOS 7에서의 gcc upgrade
- Link
- https://jdhao.github.io/2017/09/04/install-gcc-newer-version-on-centos/30
- https://gcc.gnu.org/wiki/InstallingGCC35
yum install gmp-devel mpfr-devel libmpc-devel wget
wget https://ftp.gnu.org/gnu/gcc/gcc-8.3.0/gcc-8.3.0.tar.gz
mkdir gcc-8.3.0-build
tar xf gcc-8.3.0.tar.gz
cd gcc-8.3.0-build
../gcc-8.3.0/configure --enable-languages=c,c++ --disable-multilib
make && make install
export LD_LIBRARY_PATH=/usr/local/lib64:${LD_LIBRARY_PATH}