configure: error: Cannot find php-config.
程序员文章站
2022-04-07 22:04:28
...
本文章给大家介绍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 安装路径
推荐阅读
-
编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法
-
编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法
-
Error: ENOENT: no such file or directory, uv_cwd Error: Cannot find module
-
configure: error: cannot guess build type; you must specify one
-
【已解决】运行webpack-dev-server时提示Error: Cannot find module ‘webpack-cli/bin/config-yargs‘
-
webpack5: Error: Cannot find module ‘webpack-cli/bin/config-yargs‘
-
Webpack 报错:Error: Cannot find module ‘webpack-cli/bin/config-yargs‘
-
webpack-dev-server 报错 Error: Cannot find module ‘webpack/bin/config-yargs‘
-
webpack——Error: Cannot find module ‘webpack-cli/bin/config-yargs‘
-
【webpack-dev-server】Error: Cannot find module ‘webpack-cli/bin/config-yargs‘