configure: error: Cannot find php-config. Please use --with-php-config=PATH
错误
报错: configure: error: Cannot find php-config. Please use --with-php-config=PATH
原因
–with-php-config=PATH 后面路径出错了。
解决
不知道路径的可以通过 find命令 查找。
$ find / -name php-config
/usr/local/php/bin/php-config
./configure --with-php-config=/usr/local/php/bin/php-config