Skip to content

Instantly share code, notes, and snippets.

@mfehr
Created November 30, 2017 17:08
Show Gist options
  • Save mfehr/94b7185d21c4a3a428cf3a69becfd8dd to your computer and use it in GitHub Desktop.
Save mfehr/94b7185d21c4a3a428cf3a69becfd8dd to your computer and use it in GitHub Desktop.
Upgrade gcc and g++ on Ubuntu 14.04
# Upgrade 14.04 to gcc/g++ from 16.04
# Based on: https://gist.github.com/application2000/73fd6f4bf1be6600a2cf9f56315a2d91
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-snapshot -y && \
sudo apt-get update && \
sudo apt-get install gcc-5 g++-5 -y && \
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5 && \
sudo apt-get install gcc-4.8 g++-4.8 -y && \
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment