ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

部署流水线更新composer 报错

2022-09-16 20:01:50  阅读:592  来源: 互联网

标签:phpspreadsheet phpoffice 报错 composer 1.22 流水线 PHP 1.24


composer update 时候报错

Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires PHP extension ext-zip * but it is missing from your system. Install or enable PHP's zip extension.
Problem 2
- phpoffice/phpspreadsheet[1.22.0, ..., 1.24.1] require ext-zip * -> it is missing from your system. Install or enable PHP's zip extension.
- Root composer.json requires phpoffice/phpspreadsheet ^1.22.0 -> satisfiable by phpoffice/phpspreadsheet[1.22.0, 1.23.0, 1.24.0, 1.24.1].
]
Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpoffice/phpspreadsheet[1.22.0, ..., 1.24.1] require ext-zlib * -> it is missing from your system. Install or enable PHP's zlib extension.
- Root composer.json requires phpoffice/phpspreadsheet ^1.22.0 -> satisfiable by phpoffice/phpspreadsheet[1.22.0, 1.23.0, 1.24.0, 1.24.1].
To enable extensions, verify that they are enabled in your .ini files:
- /usr/local/php/etc/php.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-zlib` to temporarily ignore these required extensions.

正常安装 了zipzlib扩展就不会报错了,但是问题依旧;

原因排查

image-20220916194048038

虽然在apache 默认已经开启了扩展,但是安装composer 的php未开启;造成 此问题,一直提示未安装扩展;

解决方案:都开启上面的扩展即可;

文章来源:刘俊涛的博客 欢迎关注公众号、留言、评论,一起学习。


若有帮助到您,欢迎捐赠支持,您的支持是对我坚持最好的肯定(_)

标签:phpspreadsheet,phpoffice,报错,composer,1.22,流水线,PHP,1.24
来源: https://www.cnblogs.com/lovebing/p/16701062.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有