Forked from heartonbit/gist:2575ce02ca730559d2f2c65eb8682231
Created
April 21, 2019 14:09
-
-
Save ipodipad/30b1db3407e2f7017a161d3baaa862a6 to your computer and use it in GitHub Desktop.
GCC 7 on Ubuntu 14.04 & 16.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://gist.github.com/application2000/73fd6f4bf1be6600a2cf9f56315a2d91 | |
sudo apt-get update -y && \ | |
sudo apt-get upgrade -y && \ | |
sudo apt-get dist-upgrade -y && \ | |
sudo apt-get install build-essential software-properties-common -y && \ | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ | |
sudo apt-get update -y && \ | |
sudo apt-get install gcc-7 g++-7 -y && \ | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-7 && \ | |
sudo update-alternatives --config gcc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment