From our Linux guru in the office:
These commands should be run as the superuser (sudo
):
apt-get install g++-4.8.1
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 100
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8.1 50
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 100
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8.1 50
update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-4.6 100
update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-4.8.1 50
update-alternatives --set g++ /usr/bin/g++-4.8.1
update-alternatives --set gcc /usr/bin/gcc-4.8.1
update-alternatives --set cpp-bin /usr/bin/cpp-4.8.1