o.k that what worked for me:
cd /etc/yum.repos.d
wget
http://people.centos.org/tru/devtool...tools-1.1.repo
yum --enablerepo=testing-1.1-devtools-6 install devtoolset-1.1-gcc devtoolset-1.1-gcc-c++
vim /etc/yum.repos.d/devtools-1.1.repo
paste all of this:
[DevToolset-2]
name=RedHat DevToolset v2 $releasever - $basearch
baseurl=http://puias.princeton.edu/data/puias/DevToolset/$releasever/$basearch/
enabled=1
gpgcheck=0
yum install devtoolset-2-gcc-4.8.1 devtoolset-2-gcc-c++-4.8.1
/opt/rh/devtoolset-2/root/usr/bin/gcc --version
ln -s /opt/rh/devtoolset-2/root/usr/bin/* /usr/local/bin/
hash -r
gcc --version
thanks for the help every one