error: C++ preprocessor “/lib/cpp” fails sanity check 问题的解决

问题的根源是缺少必要的C++库。如果是CentOS系统,运行,如下命令解决:

  yum install glibc-headers

 install gcc-c++