浅谈configure: error: Cannot find php-config. Please use --with-php-config=PATH错误的解决方案

 

一般出现这个错误说明你执行 ./configure 时  --with-php-config 这个参数配置路径错误导致的。

修改为:

./configure --with-php-config=/usr/local/php/bin/php-config

就可以解决问题

上面的 /usr/local/php/ 是你的 php 安装路径 ,路径完整填写是  php-config的路径 

 

查看安装路径的命令:

whereis php

which php :这个是查看正在运行的 

相关文章:

  • 2022-01-28
  • 2021-12-10
  • 2021-12-15
  • 2022-12-23
  • 2021-07-19
  • 2022-12-23
猜你喜欢
  • 2021-11-23
  • 2021-05-03
  • 2022-12-23
相关资源
相似解决方案