Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I always like to have the latest version of things, particularly if that thing is gcc, g++ and there has recently been a revision to the c++ standard.

I have forgotten what ppa's I need to add to my system (I think they come from the Ubuntu organization) in order to be able to install g++-4.9.

Please could I be reminded how to complete this process, thanks.

share|improve this question
This helped me in the end but not all the steps worked as I expected… – user3728501 Jun 24 '14 at 20:15
up vote 11 down vote accepted

You can get all the upstream development tools for Ubuntu 14.04 (and its derivatives) from ppa:ubuntu-toolchain-r/test

Activate it like so:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.9


Hope this helps!

share|improve this answer

you may also need to change the symlink "g++" that points to the old library for automated scripts to use the new if that is what you want. Find the symlink g++ pointing to g++-4.8, it is probably in /usr/bin Delete it and create a new pointing to version 4.9:

sudo ln -s g++-4.9 g++
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.