configure: error: Cannot find php-config. Please use --with-php-config=PATH
December 06, 2015
274
configure: error: Cannot find php-config. Please use --with-php-config=PATH
一般出现这个错误说明你执行 ./configure 时 –with-php-config 这个参数配置路径错误导致的。
查找:
find / -name php-config
修改为:
./configure --with-php-config=/usr/local/php/bin/php-config
就可以解决问题,上面的 /usr/local/php/ 是你的 php 安装路径
- 本文作者:Shuibo
- 本文链接:https://shuibo.me/2015/12/06/Congure-error-Cannot-find-php-config-Please-use-with-php-config.html
- 版权声明:本博客所有文章均采用 BY-NC-SA 许可协议,转载请注明出处!
查看评论