您的位置:首页 > 编程语言 > PHP开发

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

2017-09-17 18:12 417 查看
本文章给大家介绍configure: error: Cannot find php-config. Please use --with-php-config=PATH错误解决办法。

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 安装路径
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  path php apache linux
相关文章推荐