【待反馈】无法安装phpspreadsheet插件
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本: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 318:Package 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.
您好,您到您面板php 8.1中查看一下是否有安装fileinfo,没有的话,请安装上
还有一个是zip扩展,zip扩展的话需要手动安装一下
sudo apt-get install php8.1-zip
页:
[1]