本文介绍了Pyinstaller ld-linux-x86-64.so.2链接问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在另一个Linux主机上部署我的基于Python的应用程序。只要我在自己的系统上运行生成的可执行文件,Pyinstaller就可以完美地运行。



在目标框上,我收到此错误消息:

ldd的输出显示Pyinstaller将我的应用程序链接到 /lib/ld-linux-x86-64.so.2 ,该选项仅在 /lib64/ld-linux-x86-64.so .2 在目标系统(我只有基本的用户权限,所以符号链接的文件不是一个选项)。



如何修改我的可执行文件在/ lib64 /而不是/ lib /?中寻找库?

解决方案

这不是一个Python问题, UNIX / Linux编译和链接问题。



首先,您是否使用最新的Pyinstaller。如果没有,那么尝试一下。如果您仍然遇到问题,请。



尝试使用LD_LIBRARY_PATH指向正确的目录来解决您的问题。欲了解更多信息,请阅读


I'm trying to deploy my Python based application on another Linux host. Pyinstaller works flawlessly as long as I run the generated executable on my own system.

On the target box I get this error message:

As the output of ldd shows Pyinstaller links my application against /lib/ld-linux-x86-64.so.2 which is only available at /lib64/ld-linux-x86-64.so.2 on the target system (where I only have basic user privileges, so symlinking the file is not an option).

How can I modify my executable to look for the library in /lib64/ instead of /lib/ ?

解决方案

This is not really a Python question, but a UNIX/Linux compile and link question.

First of all, are you using the latest Pyinstaller. If not, then try that. If you still have the problem, then please report the bug to the Pyinstaller developers here.

Try to workaround your problem by using LD_LIBRARY_PATH to point to the correct directory. For more info read this article

这篇关于Pyinstaller ld-linux-x86-64.so.2链接问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 14:34
查看更多