简体   繁体   English

安装较低版本的GLIBC并运行pyinstaller

[英]Installing lower version of GLIBC and running pyinstaller

I'm trying to create an executable of a PyGTK application. 我正在尝试创建PyGTK应用程序的可执行文件。 But I'm getting Glibc version conflict while running the executable in client machines.(Since version of glibc(2.5) is lower in client machines than the version of glibc(2.13) where pyinstaller executable is created.) 但是我在客户端计算机上运行可执行文件时遇到Glibc版本冲突。(因为客户端计算机上的glibc(2.5)版本低于创建pyinstaller可执行文件的glibc(2.13)版本)。

So I wanted to know 所以我想知道

Is it possible to install lower version of GLIBC separately in the machine where higher version of GLIBC is already running(Keeping multiple copies of GLIBC)? 是否可以在已经运行较高版本的GLIBC的计算机中单独安装较低版本的GLIBC(保留多个GLIBC副本)?

And Is there any way we can tell pyinstaller to choose a version of GLIBC while creating an executable? 还有什么方法可以告诉pyinstaller在创建可执行文件时选择GLIBC版本?

And if the above is possible then how to achieve this? 如果上述可能,那么如何实现呢?

Thanks in advance, 提前致谢,

Is it possible to install lower version of GLIBC separately in the machine where higher version of GLIBC is already running(Keeping multiple copies of GLIBC)? 是否可以在已经运行较高版本的GLIBC的计算机中单独安装较低版本的GLIBC(保留多个GLIBC副本)?

Yes, it's possible (we do that every day). 是的,有可能(我们每天都这样做)。 It's not entirely trivial, and you don't actually need to do that to solve your problem. 这并不完全是微不足道的,而你实际上并不需要做的是为您解决问题。

And Is there any way we can tell pyinstaller to choose a version of GLIBC while creating an executable? 还有什么方法可以告诉pyinstaller在创建可执行文件时选择GLIBC版本?

What you want is a Linux-to-(older)-Linux cross-compiler. 您想要的是一个Linux到(旧)Linux的交叉编译器。 GCC can be configured as such a cross-compiler. 可以将GCC配置为这种交叉编译器。 This is also not entirely trivial. 这也不是完全无关紧要的。

Some easier solutions are listed here . 这里列出一些更简单的解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM