CentOS7,PHP7.2.8,安装扩展,执行phpize时报错:
Can't find PHP headers in /usr/include/php
The php-devel package is required for use of this command.
解决方案,安装对应版本的php-devel
yum --enablerepo=ius-archive install php72u-devel
参考:
https://wangzq-phper.iteye.com/blog/2297792
https://centos.pkgs.org/7/webtatic-x86_64/php72w-devel-7.2.8-1.w7.x86_64.rpm.html
本文解决在CentOS7环境中使用PHP7.2版本时,安装扩展过程中遇到的“找不到PHP头文件”错误。通过安装对应版本的php-devel包,成功解决了phpize命令执行失败的问题。
351

被折叠的 条评论
为什么被折叠?



