原因 -with-php-config=PATH后面路径出错了 解决 用find指令先查找路径在执行./configure $ find / -name php-config /usr/local/php/bin/php-config ./configure --with-php-config=/usr/local/php/bin/php-config