configure: error: C++ preprocessor "/lib/cpp" fails sanity check

といったエラーで configure が失敗することがあります。

yum install gcc-c++

で解決です。