补充一下使用devtoolset-2(gcc 4.8.2)的方法:

1)rpm --import http://linuxsoft.cern.ch/cern/slc6X/x86_64/RPM-GPG-KEY-cern
2)wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo

yum makecache #让新增的源生效

3)yum install devtoolset-2-toolchain
       yum install devtoolset-2-gcc  devtoolset-2-gcc-c++4)source /opt/rh/devtoolset-2/enable
Logo

更多推荐