Created
April 4, 2019 16:35
-
-
Save neetjn/7c28db8a7a31766f0e329590e4de213f 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
if [ -f "/etc/debian_version" ] | |
then | |
sudo apt-get install -y software-properties-common | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
sudo apt update | |
sudo apt install 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 | |
else | |
echo "Skipping debian based gcc installation." | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment