Tag Archives: error: C++ preprocessor “/lib/cpp” fails sanity check

[Solved] configure: error: C++ preprocessor “/lib/cpp” fails sanity check

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

The root of the problem is the lack of necessary C++ libraries.

If it is a CentOS system, run the following command to solve:

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

In Ubuntu system, run the command:

   apt-get install build-essential 
 
   apt-get install g++