It you have something lie:
checking for c++… no
checking for g++… no
checking for clang++… no
checking for icpc… no
checking whether we are using the GNU C++ compiler… no
checking whether g++ accepts -g… no
checking dependency style of g++… none
fix:
yum install gcc-c++
thx, it works, and the package I use in Ubuntu is g++