赞
踩
yum -y install centos-release-scl
yum -y install devtoolset-7-gcc devtoolset-7-gcc-c++ devtoolset-7-binutils
scl enable devtoolset-7 bash
wget http://mirrors.concertpass.com/gcc/releases/gcc-7.3.0/gcc-7.3.0.tar.gz
tar -zxvf gcc-7.3.0.tar.gz
cd gcc-7.3.0
yum -y install gmp gmp-devel mpfr mpfr-devel libmpc libmpc-devel
./configure --disable-multilib
make -j 8
make install
yum -y remove gcc gcc-c++uy
ln -s /usr/local/bin/g++ /usr/bin/g++
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。