How to install gcc 4.8.1 on Ubuntu 13.10

GCC is a popular compiler for most recent Linux distribution. Linux distribution will need this gcc package to compile many other packages or applications. Make sure your Linux has the latest version of gcc 4.8.1. This tutorial is going to show you how to install gcc 4.8.1 on Ubuntu 13.10 which is also applicable for most Ubuntu derivatives as well.

To install gcc 4.8.1 on Ubuntu 13.10, please follow these steps:

1. Add the PPA

sudo add-apt-repository ppa:ubuntu-toolchain-r/test

2. Update Ubuntu

sudo apt-get update

3. Install gcc 4.8.1

sudo apt-get install gcc-4.8

That's it.