Error when trying to install php extensions using pecl. how to solve?

PECL is a repository for PHP Extensions. Installing extensions might sometimes show errors due to dependencies.


ERROR: 'phpize' failed


1. Make sure you have `php-dev` package installed.
2. Try installing the extension again using `pecl install extension-name`.

Beginner's Guide to PHP