Ubuntu – Ubuntu 13.04 with gcc/g++/gfortran 4.8 by default

13.04compilerg++gcc

I plan to download and install Ubuntu 13.04 and I would like to have two compilers on my system.

First question: what is the version of gcc/g++/gfortran shipped with ubuntu 13.04 ? (is it 4.7.3 ?).

So, I would like to have gcc/g++/gfortran 4.8 as my default compiler (and 4.7.3 as a "backup"). Is there a well precompiled version avaible somewhere (compiled with the right optimizations and enabling std::thread) ? And how to download on install it ?

Best Answer

  • Yes, Raring has gcc 4.7.3 by default. However you can install gcc 4.8 from Ubuntu toolchain PPA.

    You can even install latest gcc snapshot by installing gcc-snapshot package available in universe repository. (not recommended though)