[英]UnsatisfiedLinkError: /tmp/snappy-1.1.4-libsnappyjava.so Error loading shared library ld-linux-x86-64.so.2: No such file or directory
[英]Error loading shared library libstdc++.so.6: No such file or directory (needed by)
我在尝试将 jprofiler 附加到容器内的 zulu jvm 时看到以下错误。
错误:
Error loading shared library libstdc++.so.6: No such file or directory (needed by
JVM 参数传递:
-agentpath:/data/jprofiler11.0.2/bin/linux-x86/libjprofilerti.so=port=8849,nowait
显然,使用的容器映像没有所需的库。 我在库中使用了不同的图像并使其工作。
我知道将 *.so 导出到 LD_LIBRARY_PATH,然后程序可以找到它。
export LD_LIBRARY_PATH=path1:path2
但我想知道不要使用 LD_LIBRARY_PATH,如何找到 *.so
我尝试像-agentpath:a.so:b.so=opt1=x,opt2=y
这样写,但它不起作用
您需要添加缺少的共享库。
运行这个 cmd 可以修复它: apk add libstdc++6 libstdc++
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.