error: C++ preprocessor "/lib/cpp" fails sanity check错误解决方法

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://blog.csdn.net/john_f_lau/article/details/17652523

原文地址:https://www.cnblogs.com/snooker/p/12974013.html