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

  1. checking how to run the C++ preprocessor… /lib/cpp
  2. configure: error: in `/usr/local/src/php-7.0.10‘:
  3. configure: error: C++ preprocessor “/lib/cpp” fails sanity check
  4. See `config.log‘ for more details

解决办法:

  1. yum install glibc-headers
  2. yum install gcc-c++

https://blog.csdn.net/qq_21119513/article/details/80459508