Ubuntu安装gcc4.9

You can upgrade/install new version of gcc and g++ using this commands

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50

  

原文地址:https://www.cnblogs.com/Charlene-HRI/p/7843320.html