开发者

Pyinstaller ld-linux-x86-64.so.2 linking problem

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:

/lib/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory

As the output of ldd shows Pyinstaller links my appl开发者_开发百科ication 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜