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

最近在Centos7安装一些软件./configure时出现

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

可能原因

没有安装kernel-headers

yum install kernel-headers

重试,一切OK

原文地址:https://www.cnblogs.com/telwanggs/p/13884660.html