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

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

问题的根源是缺少必要的C++库。

如果是CentOS系统,运行,如下命令解决:

   yum install glibc-headers
  
   yum install gcc-c++ 

Ubuntu系统中,运行命令:

   apt-get install build-essential 
 
   apt-get install g++
原文地址:https://www.cnblogs.com/niuben/p/14030171.html