Finally, the complete implementation of C ++ 11 GCC 4.8.1.
Upgrade your system.
The following steps can be performed to install GCC 4.8.1 in Ubuntu 13.04,
Sudo add-apt-repository ppa: ubuntu-toolchain-r/test
Sudo update-alternatives -- remove-all gcc
Sudo update-alternatives -- remove-all g ++
Sudo apt-get install gcc-4.8
Sudo apt-get install g ++-4.8
Sudo update-alternatives -- install/usr/bin/gcc/usr/bin/gcc-4.8 20
Sudo update-alternatives -- install/usr/bin/g ++-4.8 20
Sudo update-alternatives -- config gcc
Sudo update-alternatives -- config g ++
Sudo apt-get update
Sudo apt-get upgrade-y
Sudo apt-get dist-upgrade
Check with gcc -- version, which is 4.8.1.
Gcc -- version
Gcc (Ubuntu 4.8.1-2ubuntu1 ~ (13.04) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
Warranty; not even for MERCHANTABILITY or fitness for a particle PURPOSE.
Recommended reading:
Ubuntu 12.04 embedded cross-compilation environment arm-linux-GCC Build Process Diagram
Install the cross-compiler arm-none-linux-gnueabi-GCC in Ubuntu 12.10
Install and use Vim + GCC + GDB in Ubuntu
Switch two GCC versions in Ubuntu