#get rep yum install centos-release-scl-rh #yum install centos-release-scl # install g++ 5.2.1 yum -y install devtoolset-4-gcc devtoolset-4-gcc-c++ #config env scl enable devtoolset-4 bash echo "source /opt/rh/devtoolset-4/enable" >> ~/.bashrc