superaj 's Home

一辈子,总还是得让一些善念, 推着我们前行, 不管是三年,还是三十年, 专注做点东西, 至少对得起光阴。

Centos 安装PHP 提示configure: error: C preprocessor “/lib/cpp” fails sanity check 解决方案

重新安装gcc 和 kernel-headers

命令如下:

yum reinstall glibc-headers gcc-c++ -y
yum install kernel-headers

 

Copyright © 2026 superaj 's Home. All Right Reserved.