Probably means you’re missing the g++ compiler altogether, which isn’t installed with a groupinstall of the development tools.
configure: error: C++ compiler g++ does not work or no compiler found
Solution:
$ yum install gcc gcc-c++
On RHEL/CentOS 8 and newer, use dnf instead (yum still works as an alias):
$ dnf install gcc gcc-c++
And that’s it.