If you’re trying to compile from source and you get the error “configure: error: C++ compiler cannot create executables”, you likely need to install a missing package.
To install the missing package, run the following as root:
# yum install gcc-c++