I was installing Browsertime on CentOS 7 and encountered this error. Well, this could happen with any package which uses g++ library. To fix this error, all you got to do is install development tools with yum as below command. Try to install what you were installing. It worked for me, and I hope for you too.

make  g    Command not found on CentOS RHEL 7  FIXED - 23make  g    Command not found on CentOS RHEL 7  FIXED - 16make  g    Command not found on CentOS RHEL 7  FIXED - 83make  g    Command not found on CentOS RHEL 7  FIXED - 42make  g    Command not found on CentOS RHEL 7  FIXED - 81make  g    Command not found on CentOS RHEL 7  FIXED - 63make  g    Command not found on CentOS RHEL 7  FIXED - 10make  g    Command not found on CentOS RHEL 7  FIXED - 89make  g    Command not found on CentOS RHEL 7  FIXED - 78make  g    Command not found on CentOS RHEL 7  FIXED - 98make  g    Command not found on CentOS RHEL 7  FIXED - 99make  g    Command not found on CentOS RHEL 7  FIXED - 32make  g    Command not found on CentOS RHEL 7  FIXED - 51make  g    Command not found on CentOS RHEL 7  FIXED - 52make  g    Command not found on CentOS RHEL 7  FIXED - 14make  g    Command not found on CentOS RHEL 7  FIXED - 90make  g    Command not found on CentOS RHEL 7  FIXED - 77make  g    Command not found on CentOS RHEL 7  FIXED - 11make  g    Command not found on CentOS RHEL 7  FIXED - 52make  g    Command not found on CentOS RHEL 7  FIXED - 22make  g    Command not found on CentOS RHEL 7  FIXED - 93make  g    Command not found on CentOS RHEL 7  FIXED - 65make  g    Command not found on CentOS RHEL 7  FIXED - 78