configure error C++ compiler cannot create executables

报错内容为:

1
You don't have a C++ compiler on there. You need to install the gcc-c++ package (while you're at it, install gcc as well if you haven't already). This can probably be done with apt-get, but I'm not sure how you use it.

解决方法:

1
yum install gcc-c++