Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imanojkumar/dce668d097282f0ef929d51e8008bf0d to your computer and use it in GitHub Desktop.
Save imanojkumar/dce668d097282f0ef929d51e8008bf0d to your computer and use it in GitHub Desktop.
Installing gcc 4.9 & g++ 4.9 on Ubuntu 12.04 OR Ubuntu 14.04
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50
sudo apt-get install g++-4.9
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 50
@imanojkumar
Copy link
Author

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment