宝塔618特惠活动,企业版999元/年,宝塔SSL证书买1送1!限时抢购!查看活动
当前位置:论坛首页 > Linux面板 > 求助

【待反馈】无法安装phpspreadsheet插件

发表在 Linux面板2024-6-13 12:30 [复制链接] 1 1863

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:Linux正式版8.2.0 php8.1
系统版本:Ubuntu
问题描述:composer require phpoffice/phpspreadsheet时无法安装
相关截图(日志、错误):

phpinfo
已加载Core date libxml openssl pcre sqlite3 zlib bcmath ctype curl dom filter ftp gd gettext hash iconv intl json mbstring SPL session pcntl standard mysqlnd PDO pdo_mysql pdo_sqlite Phar posix Reflection mysqli shmop SimpleXML soap sockets sodium sysvsem tokenizer xml xmlreader xmlwriter fileinfo zip
出错:
Cannot use phpoffice/phpspreadsheet's latest version 2.0.0 as it requires ext-fileinfo * which is missing from your platform.In PackageDiscoveryTrait.php line 318ackage phpoffice/phpspreadsheet has requirements incompatible with your PHP version, PHP extensions and Composer version:- phpoffice/phpspreadsheet 2.0.0 requires ext-fileinfo * but it is not present.- phpoffice/phpspreadsheet 2.0.0 requires ext-zip * but it is not present.

下载 (1).png
使用道具 举报 只看该作者 回复
发表于 2024-6-13 14:50:24 | 显示全部楼层
您好,您到您面板php 8.1中查看一下是否有安装fileinfo,没有的话,请安装上
还有一个是zip扩展,zip扩展的话需要手动安装一下
  1. sudo apt-get install php8.1-zip
复制代码
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

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

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