PHP 扩展安装 - phpize 错误 - 在 NGINX/PHP-FPM 上

标签 php nginx centos pecl

我想为 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/

相关文章:

php - 更新查询在本地服务器上运行,但不在互联网上运行

Nginx limit_rate 不适用于 proxy_pass

Nginx 不会重新解析 Docker 中的 DNS 名称

chalice war 和部署

php - 为什么这个错误发生在 codeigniter fileupload 上?

php - mysql 在数据库中调整日期时间值,而不是在搜索返回中

tomcat - Nginx 将每个请求转发给 apache tomcat

php - 无法从moodle下载带有西类牙口音(áéíóú)的文件,出现403错误,但口音在页面中正确显示

php - 为什么 PHP curl 不起作用?当它从命令行 curl 工作时?

php - 获取数组中的下一个键