I am getting below error. Looks like we need to remove the patch number from the version. 
error: version '4.8.2' requested but 'g++-4.8.2' not found and version '4.8' of default 'g++' does not match