0

我想为 PHP 安装 imagick 扩展。但是我在安装时收到错误“phpize”错误

> pecl 安装 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

4

2 回答 2

1

以root身份执行以下命令

yum install php-devel

然后尝试再次安装 imageMagick 扩展

于 2013-10-15T15:25:33.187 回答
0

安装 php-devel 包,它包含在里面

于 2013-10-15T15:26:31.877 回答