centos7 升级GCC至7.3.0

国内找了一圈未发现好用的。后来终于在国外找到。源地址

总结:

wget http://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-7.3.0/gcc-7.3.0.tar.gz

tar zxf gcc-7.3.0.tar.gz
cd gcc-7.3.0

yum -y install bzip2
./contrib/download_prerequisites

./configure –disable-multilib –enable-languages=c,c++

make -j 4
make install

gcc –version

发表回复