09 November 2012

PHP error: sh: phpize: not found

While playing on a local machine, I got the following error:
# pecl install pecl_http
downloading pecl_http-1.7.4.tgz ...
Starting to download pecl_http-1.7.4.tgz (174,503 bytes)
.........................done: 174,503 bytes
71 source files, building
running: phpize
sh: phpize: not found
ERROR: `phpize' failed
It seems that I was missing php-dev package on my Debian machine. The fix was:
# apt-get install php5-dev

1 comment:

  1. Update: If you get the pecl command not found error, the missing package is php-pear

    ReplyDelete