gcc 4.8安裝centos
# curl -Lks http://www.hop5.in/yum/el6/hop5.repo > /etc/yum.repos.d/hop5.repobash
# yum install gcc gcc-g++ –ycurl
# gcc --versionurl
gcc 4.9 安裝io
# yum install centos-release-scl –ygcc
# yum install devtoolset-3-toolchain –ygc
# scl enable devtoolset-3 bashyum
# gcc –versiontools
gcc 5.2 安裝devtools
# yum install centos-release-scl –y
# yum install devtoolset-4-toolchain –y
# scl enable devtoolset-4 bash
# gcc --version
# g++ --version