PHP extension install - phpize error - on NGINX/PHP-FPM

Deadly 提交于 2019-12-13 04:33:44

问题


I want to install imagick extension for PHP. But i get error 'phpize' error when installing

> 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

I know php-devel package contains phpize for compiling/creating modules/extensions. I don't want to install apache. I am running a LEMP on CentOS 6.4

How do i proceed? or install phpize without apache and reinstalling/configuring php


回答1:


as root, execute the following command

yum install php-devel

Then try installing the imageMagick extension again




回答2:


Install the php-devel package, it's included in there



来源:https://stackoverflow.com/questions/19385068/php-extension-install-phpize-error-on-nginx-php-fpm

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!