【linux命令】php编译报错configure: error: C++ preprocessor “/lib/cpp” fails sanity check 以及解决办法
内容摘要
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 sanit
configure: error: in `/usr/local/src/php-7.0.10':
configure: error: C++ preprocessor "/lib/cpp" fails sanit
文章正文
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++
代码注释
[!--zhushi--]