最后修改为:
./configure --with-php-config=/usr/local/php/bin/php-config
解决问题
上面的 /usr/local/php/ 是你的 php 安装路径