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

喜你入骨 提交于 2020-01-05 04:04:36

问题


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 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/ ?


回答1:


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



来源:https://stackoverflow.com/questions/1761140/pyinstaller-ld-linux-x86-64-so-2-linking-problem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!