我想为 PHP 安装 imagick 扩展。但是我在安装时收到错误“phpize”错误
> pecl install imagick-3.1.2
downloading imagick-3.1.2.tgz ...
Starting to download imagick-3.1.2.tgz (94,657 bytes)
.....................done: 94,657 bytes
15 source files, building
running: phpize
sh: phpize: command not found
ERROR: `phpize' failed
我知道 php-devel 包包含用于编译/创建模块/扩展的 phpize。我不想安装apache。我在 CentOS 6.4 上运行 LEMP
我该如何进行?或安装
phpize
没有 apache 并重新安装/配置 php
最佳答案
以root身份执行以下命令
yum install php-devel
然后尝试再次安装 imageMagick 扩展
关于PHP 扩展安装 - phpize 错误 - 在 NGINX/PHP-FPM 上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19385068/