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

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

 

  1. yum install glibc-headers
  2. yum install gcc-c++

     Ubuntu系统中,运行命令:

  1. apt-get install build-essential
  2. apt-get install g++

https://blog.csdn.net/john_f_lau/article/details/17652523