当前位置:   article > 正文

Error loading shared library ld-linux-aarch64.so.1: No such file or directory (needed by /tmp/jffi*.

error loading shared library ld-linux-aarch64.so.1: no such file or director

1.问题,arm环境使用com.spotify.docker-client链接docker报错

  1. Caused by: java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: /tmp/jffi10783088860516552098.so: Error loading shared library ld-linux-aarch64.so.1: No such file or directory (needed by /tmp/jffi10783088860516552098.so)
  2. at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
  3. at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2430)
  4. at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2487)
  5. at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2684)
  6. at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2617)
  7. at java.base/java.lang.Runtime.load0(Runtime.java:767)
  8. at java.base/java.lang.System.load(System.java:1834)
  9. at com.kenai.jffi.internal.StubLoader.loadFromJar(StubLoader.java:371)
  10. at com.kenai.jffi.internal.StubLoader.load(StubLoader.java:258)
  11. at com.kenai.jffi.internal.StubLoader.<clinit>(StubLoader.java:444)
  12. at java.base/java.lang.Class.forName0(Native Method)
  13. at java.base/java.lang.Class.forName(Class.java:398)
  14. at com.kenai.jffi.Init.load(Init.java:68)
  15. at com.kenai.jffi.Foreign$InstanceHolder.getInstanceHolder(Foreign.java:49)
  16. at com.kenai.jffi.Foreign$InstanceHolder.<clinit>(Foreign.java:45)
  17. at com.kenai.jffi.Foreign.getInstance(Foreign.java:103)
  18. at com.kenai.jffi.Type$Builtin.lookupTypeInfo(Type.java:242)
  19. at com.kenai.jffi.Type$Builtin.getTypeInfo(Type.java:237)
  20. at com.kenai.jffi.Type.resolveSize(Type.java:155)
  21. at com.kenai.jffi.Type.size(Type.java:138)

 原因

看报错说找不到文件/tmp/jffi10783088860516552098.so文件是必须的,其实是ld-linux-aarch64.so.1文件找不到,该文件是arm系统文件,缺少该文件多半是使用的openjdk是自己改造过的,导致缺少文件,可以重新找openjdk作为基础镜像打包;

结果

 我们是使用openjdk11.0.7作为基础镜像,重新打包后解决了此问题!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/492593
推荐阅读
相关标签
  

闽ICP备14008679号