php docker镜像 checking for libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0... no configure: error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met:

错误:

复制代码
checking for libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0... no
configure: error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met:

No package 'libzip' found
No package 'libzip' found
No package 'libzip' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBZIP_CFLAGS and LIBZIP_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
ERROR: Service 'webapi' failed to build : The command '/bin/sh -c apt-get update          &&       apt-get install libzip4          && docker-php-ext-install zip' returned a non-zero code: 1
复制代码

解决方法:

您必须猜测您需要安装的包称为“libzip-dev”,而不仅仅是“libzip”。

所以解决方案是:

RUN apt-get update \
     && apt-get install -y libzip-dev \
     && docker-php-ext-install zip

 

posted @   浅笑19  阅读(653)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)
历史上的今天:
2021-03-19 log4j:WARN No appenders could be found for logger (freemarker.cache)
2021-03-19 java response输出文件流
2021-03-19 java使用itext导出PDF文本绝对定位(实现方法)
2021-03-19 BigDecimal加减乘除计算
2021-03-19 Freemarker循环遍历
2021-03-19 springboot freemarker模板引擎 配置属性说明
2021-03-19 springboot项目中全局处理freemarker渲染页面时出现空值异常
点击右上角即可分享
微信分享提示