Ubuntu – How to install g++ 4.8

g++software installation

I have G++ 4.7.2 on my Ubuntu 12.04 and I'm trying to install 4.8.

I downloaded the file from the GNU repository.

After configure and make, I get the following error:

collect2: error: ld returned 1 exit status
make[3]: *** [build/gengtype] Error 1..

etc.

Is there ANY way to install 4.8 on Ubuntu?

Best Answer

For the moment g++-4.8 doesn't exist in Ubuntu repositories since is still in unstable or testing version and also there is no any PPA from where you can get g++-4.8 (even if you can find in other places that can be found in https://launchpad.net/~ubuntu-toolchain-r/+archive/test - check the link and you will see that is not there). But it can be found in Debian repositories. Depending on your system architecture, download:

More about: http://packages.debian.org/sid/g++-4.8, http://packages.debian.org/jessie/g++-4.8 (you should check also the dependencies).

Related Question