PHP extension install - phpize error - on NGINX/PH

2019-09-16 04:28发布

问题:

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