php编译报错configure: error: C++ preprocessor “/lib/cpp” fails sanity check 以及解决办法

php安装报错,其中一个小细节:

checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/usr/local/src/php-7.0.10':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details

解决办法:

yum install glibc-headers
yum install gcc-c++
hmoban主题是根据ripro二开的主题,极致后台体验,无插件,集成会员系统
自学咖网 » php编译报错configure: error: C++ preprocessor “/lib/cpp” fails sanity check 以及解决办法