![](/img/trans.png)
[英]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.