Ubuntu 13.04 with gcc/g++/gfortran 4.8 by default?
Solution 1:
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)
Solution 2:
The following should do the trick:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.8
Note, if you receive an error saying that add-apt-repository
does not exist, you can install it via:
sudo apt-get install software-properties-common