Terminal commands for installing g++ 4.8?

10,839

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:
10,839

Related videos on Youtube

user997112
Author by

user997112

Updated on September 18, 2022

Comments

  • user997112
    user997112 almost 2 years

    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

    • dobey
      dobey over 10 years
      Is sudo apt-get install g++-4.8 not good enough? It is the default on 13.10.
    • user997112
      user997112 over 10 years
      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).