configure: error: Cannot find PHP-config. Please use --with-php-config=PATH
一般出现这个错误说明你执行 ./
configure
When --with-php-config
this parameter configuration path error.
change into:
./configure --with-php-config=/usr/local/php/bin/php-config
You can solve the problem
Above / usr / local / php / php is your installation path, complete the path is the path of php-config
View command installation path:
whereis php
which php: This is the view of the running