sh: phpize: not found

When using pecl, or something else that require phpize, you may get a warning saying that phpize is not found, even when you have PHP installed on your server.  In order to use phpize you need to install the PHP development packages, normally named php-devel.

For Debian/Ubuntu, you can fix this by running:

sudo apt-get install php5-dev

3 thoughts on “sh: phpize: not found

  1. The following packages have unmet dependencies:
    php5-dev : Depends: autoconf (>= 2.63) but it is not installable
    Depends: automake (>= 1.11) but it is not installable
    Depends: libssl-dev but it is not going to be installed
    Depends: libtool (>= 2.2) but it is not installable
    Depends: shtool but it is not installable
    E: Unable to correct problems, you have held broken packages.