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

2 Answers 2

1

as root, execute the following command

yum install php-devel

Then try installing the imageMagick extension again

Sign up to request clarification or add additional context in comments.

5 Comments

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?
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
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?
I went ahead and installed php-devel, didn't start apache. Seems like that was the only way! :( tried too much!
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
0

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

1 Comment

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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.