Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing lower version of GLIBC and running pyinstaller

I'm trying to create an executable of a PyGTK application. 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.)

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

And Is there any way we can tell pyinstaller to choose a version of GLIBC while creating an executable?

And if the above is possible then how to achieve this?

Thanks in advance,

like image 829
user2109788 Avatar asked Mar 24 '14 17:03

user2109788


Video Answer


1 Answers

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

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?

What you want is a Linux-to-(older)-Linux cross-compiler. GCC can be configured as such a cross-compiler. This is also not entirely trivial.

Some easier solutions are listed here.

like image 139
Employed Russian Avatar answered Oct 11 '22 17:10

Employed Russian