Created
November 27, 2018 20:19
-
-
Save stonexjr/1236c2bd6666d6f904b5ce84b76df789 to your computer and use it in GitHub Desktop.
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
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 && \ | |
gcc -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When completed, you must change to the gcc you want to work with by default. Type in your terminal:
To verify if it worked. Just type in your terminal