configure: error: Can not find php-config Please use --with-php-config = PATH wrong solution.

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 

Guess you like

Origin www.cnblogs.com/ytsky/p/11608227.html