patchelf-统计:没有这样的文件或目录

发布于 2025-01-19 11:05:01 字数 926 浏览 1 评论 0原文

我们正在尝试解决以下问题:

信息| JVM 2 | 2022/04/05 09:06:23.421 |由: java.lang.unsatisfiedlinkerror: /home/usr/examples/tmp/.djl.ai/pytorch/1.9.1.1.1-cpu-linux-x86_64/0.14.0-cpu-libdjl_torch.so: /lib64/libm.so.6:找不到版本`glibc_2.23'(要求 /home/usr/examples/tmp/.djl.ai/pytorch/1.9.1-cpu-linux-x86_64/libtorch_cpu.so)

“ strings'命令显示所有Glibc版本followed this instruction - https://serverfault.com/questions/894625/safely-upgrade- glibc-on-centos-7 这是我们试图在CentOS 7.9上拥有GLIBC 2.23,并且我们能够使用-prefix完成“ MAKE INSTAL”,以使用单独的路径。

运行此“补丁”时,特别是我试图运行的命令:

patchelf -set-interpreter/opt/glibc-2.23/lib/ld-linux-x86-64.so.2 -set-rpath/opt/glibc-2.23/lib:/usr/lib64 pytorch

我在以下错误下,安装了“ pytorch”,即安装了python模块:

Stat:没有此类文件或目录

请告知是否错过了任何内容或

We are trying to solve below issue :

INFO | jvm 2 | 2022/04/05 09:06:23.421 | Caused by:
java.lang.UnsatisfiedLinkError:
/home/usr/examples/tmp/.djl.ai/pytorch/1.9.1-cpu-linux-x86_64/0.14.0-cpu-libdjl_torch.so:
/lib64/libm.so.6: version `GLIBC_2.23' not found (required by
/home/usr/examples/tmp/.djl.ai/pytorch/1.9.1-cpu-linux-x86_64/libtorch_cpu.so)

Ran the "strings" command to show what all GLIBC version and could not find "2.23", followed this instruction - https://serverfault.com/questions/894625/safely-upgrade-glibc-on-centos-7 which is we are trying to have GLIBC 2.23 on Centos 7.9, and we were able to complete "make install" using --prefix to use seperate path.

When running this "patchelf" especially this command i am attempting to run :

patchelf --set-interpreter /opt/glibc-2.23/lib/ld-linux-x86-64.so.2
--set-rpath /opt/glibc-2.23/lib:/usr/lib64 pytorch

I am getting below error where "pytorch" is python module installed :

stat: No such file or directory

Please advise if anything missed or

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文