前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Cannot find php-config. Please use --with-php-config=PATH 错误的解决方案

Cannot find php-config. Please use --with-php-config=PATH 错误的解决方案

原创
作者头像
conanma
发布2021-12-06 10:25:01
1.2K0
发布2021-12-06 10:25:01
举报
文章被收录于专栏:正则

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

修改为:

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

就可以解决问题

上面的 /usr/local/php/ 是你的 php 安装路径

[php] Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environme

在 centos 中,对 php 扩展进行编译安装时,出现下面的提示

1

Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.

解决方法:

yum install autoconf

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
作者已关闭评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档