在jenkins:高山容器中,Gradle构建失败:UnsatisfiedLinkError:linux-amd64 / libnative-platform.so:libstdc ++。so.6: [英] Gradle build fails in jenkins:alpine container: UnsatisfiedLinkError: linux-amd64/libnative-platform.so: libstdc++.so.6:

查看:255
本文介绍了在jenkins:高山容器中,Gradle构建失败:UnsatisfiedLinkError:linux-amd64 / libnative-platform.so:libstdc ++。so.6:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我开始在使用Oracle Java 8的Docker容器中使用Jenkins。使用Gradle构建项目时,出现以下错误消息:

Recently I started using Jenkins in a Docker container with Oracle Java 8. When building a project with Gradle I get this error message:

UnsatisfiedLinkError: linux-amd64/libnative-platform.so: libstdc++.so.6: cannot open shared object file: No such file or directory

在Jenkins中,我选择了 Force GRADLE_USER_HOME以使用工作区,但是一点都不走运。文件libnative-platform.so位于预期目录中,但gradle无法使用。我尝试在容器中安装Gradle,结果相同。我的最后一个设置是使用Gradle Wrapper。

In Jenkins I selected "Force GRADLE_USER_HOME to use workspace" with no luck at all. The file libnative-platform.so is in the directory expected but gradle won't work. I tried installing Gradle in the container and same result. My last setup is with Gradle Wrapper.

我到处都看过,但是我的运气并不好。我很感谢有人能对此提供帮助。

I looked everywhere but I had no luck on my quest. I appreciate if someone can shed a light on this.

推荐答案

您可以通过安装来完成这项工作。 libstdc ++ 高山软件包

You can make this work by installing the libstdc++ package in Alpine

apk add --no-cache libstdc++

这篇关于在jenkins:高山容器中,Gradle构建失败:UnsatisfiedLinkError:linux-amd64 / libnative-platform.so:libstdc ++。so.6:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆