Skip to content

Instantly share code, notes, and snippets.

View TomSmartBishop's full-sized avatar

Tom Bishop TomSmartBishop

View GitHub Profile
@TomSmartBishop
TomSmartBishop / configure_muliple_gcc.sh
Last active July 27, 2018 10:58 — forked from SunnyRaj/configure_muliple_gcc.sh
Configure multiple GCC versions on ubuntu
#!/usr/bin/env bash
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt update
sudo update-alternatives --remove-all gcc
sudo update-alternatives --remove-all g++
sudo apt-get install -y gcc-4.8 g++-4.8 gcc-5 g++-5 gcc-6 g++-6 gcc-7 g++-7 gcc-8 g++-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10