A common error while configuring (running ./configure) software in Linux systems is - error: C++ compiler cannot create executables. The solution, not surprisingly is simple:

Install the package which adds C++ support to the GNU Compiler Collection - gcc-c++. On Fedora / Red Hat that translates to:
yum install gcc-c++

Note: I found this error while trying to configure DansGuardian, a software content filter for Linux.