问题
使用宝塔面板安装php7.2扩展fileinfo时中断,报错:
configure: error: C preprocessor "/lib/cpp" fails sanity check
原因:
应自编译升级内核,缺少相应组件
缺少内核组件kernel-ml-headers-***.elrepo.x86_64
解决:
查找:
yum --disablerepo="*" --enablerepo="elrepo-kernel" list available
安装:
yum --enablerepo=elrepo-kernel install kernel-ml-headers
One comment
找了一下午,终于找到靠谱的了!C++编译器早就安装了;我最近把内核改成了bbrplus,总是报这个错,网上的答案都是没有安装编译器,原来果然跟内核有关!感谢!