【已解答】php 8.1 宝塔php fileinfo 安装不上去
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本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 --- 命令已执行! --- 这个报错是您没有安装可用的 C 语言编译器
解决方法
到终端执行以下命令安装编译环境之后再试试
yum groupinstall "Development Tools" -y
页:
[1]