Skip to content

Instantly share code, notes, and snippets.

@zdr1976
Forked from beci/gcc 5 on ubuntu 14.04
Created May 3, 2016 09:17
Show Gist options
  • Save zdr1976/d7fc4f6d40b7b71c5be8b9d35d2cd150 to your computer and use it in GitHub Desktop.
Save zdr1976/d7fc4f6d40b7b71c5be8b9d35d2cd150 to your computer and use it in GitHub Desktop.
use gcc 5.x on ubuntu 14.04
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-5 g++-5
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment