CentOSFedoraLinuxOperating SystemsRedHat

[Solved] ERROR: phpize failed, command not found in PECL

If you are installing PHP extensions using PECL, you might end up with an error

pecl install uploadprogress

WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading uploadprogress-1.0.3.1.tgz ...
Starting to download uploadprogress-1.0.3.1.tgz (9,040 bytes)
....done: 9,040 bytes
4 source files, building
running: phpize
sh: phpize: command not found
ERROR: `phpize' failed

Solution:

The error clearly indicates that issue with phpize. This requires a php-devel to work as phpize is included in php-devel.

Just install php-devel package using yum.

yum -y install php-devel

Then try installing PHP extension again using PECL which should work fine.

Hope this helps!

Abhijit Sandhan

Love to Automate, Blog, Travel, Hike & spread Knowledge!

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to top button