phpize无法在/ usr / include / php中找到PHP标头

时间:2017-06-10 09:04:09

标签: php centos7

尝试使用pecl安装任何软件包时遇到phpize Can't find PHP headers in /usr/include/php问题。

服务器:Centos 7 Php版本:7.0.14

我也安装了php-devel。当用yum search php-devel终端显示如下搜索php-devel时显示如下:

php-devel.x86_64 : Files needed for building PHP extensions
php54-php-devel.x86_64 : Files needed for building PHP extensions
php55-php-devel.x86_64 : Files needed for building PHP extensions
php56-php-devel.x86_64 : Files needed for building PHP extensions
php70-php-devel.x86_64 : Files needed for building PHP extensions
php71-php-devel.x86_64 : Files needed for building PHP extensions

那我怎么能解决这个问题呢?

感谢。

1 个答案:

答案 0 :(得分:0)

你需要为php 7.1安装php71w-devel