当前位置:论坛首页 > Linux面板 > 求助

【已解答】无法安装 PHP 扩展 fileinfo

发表在 Linux面板2026-5-3 08:42 [复制链接] 1 419

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:Linux 稳定版 10.0.2

系统版本:Ubuntu 24.04.3 LTS

问题描述:无法安装 PHP 扩展 fileinfo

相关截图(日志、错误):
2026-05-03 00:31:36 (842 MB/s) - ‘fileinfo.sh’ saved [6884/6884]
正在选择下载节点...
https://download.bt.cn
cat: /etc/redhat-release: No such file or directory
Configuring for:
PHP Version: 8.4
PHP Api Version: 20240924
Zend Module Api No: 20240924
Zend Extension Api No: 420240924
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
fileinfo.sh: line 103: ./configure: No such file or directory
sed: can't read Makefile: No such file or directory
make: *** No targets specified and no makefile found. Stop.
error

在论坛中寻找到相关解决办法  安装php扩展报错Cannot find autoconf. Please check your autoconf install... - Linux面板 - 宝塔面板论坛,但是为什么不把 autoconf 的检测加在安装脚本里?
使用道具 举报 只看该作者 回复
发表于 2026-5-6 16:01:22 | 显示全部楼层
看报错是下载不完整,您重新安装一下fileinfo或者重装一下对应版本的php后再试试
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表