If you receive this error trying to install some new binaries using MAMP (for example, installing Intl PHP module), then there is a chance you’ll get this error in your Terminal:
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.
This happens because you haven’t the Autoconf binaries installed.
So, let’s install the Autoconf binaries in MAMP.