You may try to install e.g. gcc4.9 as explained here: unix.stackexchange.com/a/265321
And then follow something like this (skip first section):