0

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

Anoop Naik
  • 335
  • 7
  • 15

2 Answers2

1

as root, execute the following command

yum install php-devel

Then try installing the imageMagick extension again

Cillier
  • 1,021
  • 9
  • 8
  • I know that, but the problem is it includes apache and php as well. I am running php-fpm on nginx. How to proceed without affecting change on my current php configuration? – Anoop Naik Oct 15 '13 at 15:31
  • Did you install your own custom version of PHP by any chance ? Check and see if "phpize5" is available on your system and if so, symlink phpize5 -> /usr/local/bin/phpize or something – Cillier Oct 15 '13 at 15:33
  • no phpize5 isn't available. Will installing `php-devel` disrupt the current php.ini setting or config in any sense and after installing how do i remove apache? – Anoop Naik Oct 15 '13 at 15:36
  • I went ahead and installed php-devel, didn't start apache. Seems like that was the only way! :( tried too much! – Anoop Naik Oct 15 '13 at 15:43
  • 1
    Great! Now you can make sure that apache also doesn't start automatically next time you reboot by running this: chkconfig --level 345 httpd off – Cillier Oct 15 '13 at 15:57
0

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

Alex
  • 322
  • 4
  • 18
  • I know that, but the problem is it includes apache and php as well. I am running php-fpm on nginx. How to proceed without affecting change on my current php configuration? – Anoop Naik Oct 15 '13 at 15:32