running:
phpize
command can cause such sample output:
Configuring for: PHP Api Version: 20100412 Zend Module Api No: 20100525 Zend Extension Api No: 220100525 Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.
solution is simple, just put:
brew install autoconf
in terminal, push enter and rerun phpize after brew finishes hiw work