Recently, faced this issue where I was trying to install a binary and got this issue ...
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.
The issue occurred when the binary was running phpize . Turns out it was due to missing "autoconf" package.
Just need to install autoconf.
For CentOS / RHEL:
sudo yum install autoconf
For Ubuntu :
sudo apt-get install autoconf
** For installing your own :**
wget http://mirror2.mirror.garr.it/mirrors/gnuftp/gnu/autoconf/autoconf-latest.tar.gz tar -zxvf autoconf-latest.tar.gz cd autoconf-* ./configure echo $? #Ensure this is 0, if not please fix the error encountered make echo $? #Ensure this is 0, if not please fix the error encountered make install echo $? #If this is 0, installation was successful