checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables

See `config.log' for more details.

解决方法:yum install gcc gcc-c++