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

【已解答】php 8.1 宝塔php fileinfo 安装不上去

发表在 Linux面板2026-6-27 20:06 [复制链接] 1 253

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

系统版本:centos7

问题描述:fileinfo安装成功实际没有

相关截图(日志、错误):

PHP Api Version:         20210902Zend Module Api No:      20210902Zend Extension Api No:   420210902checking 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/81/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|-Successify --- 命令已执行! ---
使用道具 举报 只看该作者 回复
发表于 2026-7-1 09:55:06 | 显示全部楼层
这个报错是您没有安装可用的 C 语言编译器

解决方法
到终端执行以下命令安装编译环境之后再试试
yum groupinstall "Development Tools" -y
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术分析

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

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