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

【已解答】PHP8.0无法安装fileinfo

发表在 Linux面板2023-10-30 16:49 [复制链接] 4 2721

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

系统版本:CentOS 7.9.2009 x86_64(Py3.7.9) 

问题描述:PHP8.0无法安装fileinfo

相关截图(日志、错误):Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again
Configuring forHP Api Version: 20200930Zend Module Api No: 20200930Zend Extension Api No: 420200930checking for grep that handles long lines and -e... /bin/grepchecking for egrep... /bin/grep -Echecking for a sed that does not truncate output... /bin/sedchecking for pkg-config... /bin/pkg-configchecking pkg-config is at least version 0.9.0... yeschecking whether the C compiler works... noconfigure: error: in `/www/server/php/80/src/ext/fileinfo':configure: error: C compiler cannot create executablesSee `config.log' for more detailssed: can't read Makefile: No such file or directorysed: can't read Makefile: No such file or directorymake: *** No targets specified and no makefile found. Stop.error

使用道具 举报 只看该作者 回复
发表于 2023-10-30 21:35:17 | 显示全部楼层
您好,面板中安装的PHP默认是会装饰fileinfo 的,您可尝试卸载重装PHP,看能否安装上file info扩展
使用道具 举报 回复 支持 反对
发表于 2023-11-1 21:38:56 | 显示全部楼层
堡塔运维盏尽 发表于 2023-10-30 21:35
您好,面板中安装的PHP默认是会装饰fileinfo 的,您可尝试卸载重装PHP,看能否安装上file info扩展 ...

搞不了,已经重装系统了
使用道具 举报 回复 支持 反对
发表于 2023-11-1 21:39:28 | 显示全部楼层
堡塔运维盏尽 发表于 2023-10-30 21:35
您好,面板中安装的PHP默认是会装饰fileinfo 的,您可尝试卸载重装PHP,看能否安装上file info扩展 ...

重装PHP  删除无数次fileinfo 均失败
使用道具 举报 回复 支持 反对
发表于 2023-11-2 10:59:07 | 显示全部楼层
您好,您可截图看一下您当前扩展内是否有fileinfo,如果没有,您再手动安装,截图看下安装的执行日志 安装日志.png
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

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

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