Created
May 16, 2018 11:33
-
-
Save xiasenhai/918ab482e584ac1f5b48a8c2f78eab36 to your computer and use it in GitHub Desktop.
Install GCC 8.1.0 on Ubuntu 18.x
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
These commands are based on ivanmara555's comment on gist 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-8 g++-8 -y && | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-8 && | |
sudo update-alternatives --config gcc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment