Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

Could somebody please advise how I could install g++ 4.8 ? I understand its not an official release yet (and that I would need to manually download a file) but I get internal compiler bug issues with 4.7 and apparently the bug has been fixed in 4.8.

The problem is I do not know how to manually install g++ 4.8 when downloading the file etc.

Thanks in advance

share|improve this question
Is sudo apt-get install g++-4.8 not good enough? It is the default on 13.10. – dobey Nov 4 '13 at 22:28
Not when I have 12.10 installed.... but I think I may change this. Only problem is I appreciate having buttons to restart and shut down (there's a 13.10 bug which hides the shutdown menu). – user997112 Nov 5 '13 at 22:15
up vote 3 down vote accepted

For 13.10:

Just use sudo apt-get install g++-4.8.

For 13.04 and earlier:

Use the ubuntu-toolchain ppa:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.8
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.