sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.9 (一般gcc-4.9 默认已经安装了,可不装)
ls /usr/bin/gcc* 有了