Skip to content

Instantly share code, notes, and snippets.

@rozap
Created July 11, 2017 21:13
Show Gist options
  • Save rozap/db82fb7a5095683e1debb1772d61daa5 to your computer and use it in GitHub Desktop.
Save rozap/db82fb7a5095683e1debb1772d61daa5 to your computer and use it in GitHub Desktop.
sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
sudo apt-get update && \
sudo apt-get install gcc-6 g++-6 -y && \
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6
To verify if it worked:
gcc -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment