编译PHP扩展是报configure: error: Cannot find php-config. Please use --with-php-config=PATH

 

只要找到php位置

configure: error: Cannot find php-config. Please use --with-php-config=PATH

 

改为  ./configure --with-php-config=/usr/local/php/bin/php-config 运行即可

 

configure: error: Cannot find php-config. Please use --with-php-config=PATH

相关文章: