Hit phpize and got a “not found” error? You’re missing the PHP development package.

sh: phpize: not found
ERROR: `phpize' failed

On Ubuntu or Debian, grab it with:

sudo apt-get install php5-dev

That’s it. phpize should work after that.