Created
July 4, 2018 08:17
-
-
Save fosini/b16284d454da4fe77f40885dc1cfb277 to your computer and use it in GitHub Desktop.
Installing newest gcc version on Amazon EC2 version (Ubuntu)
This file contains hidden or 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
# 1 install old gcc | |
sudo apt-get install gcc | |
# 2 add repository | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
# 3 update repositories | |
sudo apt-get update | |
# 3 install newest gcc | |
sudo apt-get install gcc-8 | |
# 4 update the gcc link | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 50 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment