I've never been successful creating a (stand-alone) executable on Linux.
While the creation process succeeds and I can run the stand-alone
executable on the machine where I created it, it will not run on other
hosts (SUSE Linux Enterprise Server 10 SP2 for instance).
./my_application
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/thorsten/python/pyinstaller/iu.py", line 436, in
importHook
File "/home/thorsten/python/pyinstaller/iu.py", line 495, in doimport
File "/home/thorsten/python/pyinstaller/iu.py", line 297, in getmod
File "/home/thorsten/python/pyinstaller/archive.py", line 468, in
getmod
File "/home/thorsten/python/pyinstaller/iu.py", line 109, in getmod
ImportError: /lib/libc.so.6: version `GLIBC_2.9' not found (required by
/tmp/_MEIPbsjVL/libQtCore.so.4)
On this machine I am running glibc-2.4 (the latest one for this
machine), on the machine where the stand-alone was created, it's 2.12.1.
Does PyInstaller on Linux depend on the glibc version? If so, doesn't
that defy the whole sense of creating stand-alone executables?
Thorsten
PyInstaller just packs the files on your computers together. If those
files depend on a specific GLIBC, the only solution would be to ship
glibc as well, but this has proven to create more problems than it
solves. In a word, PyInstaller cannot compensate for the absence of an
ABI.
Our suggestion is to try and execute PyInstaller on the older operating
system that you plan to support. This usually achieves the best results,
because GLIBC developers maintain backward binary compatibility.
--
Giovanni Bajo :: ra...@develer.com
Develer S.r.l. :: http://www.develer.com
My Blog: http://giovanni.bajo.it
Last post: Compile-time Function Execution in D
--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To post to this group, send email to pyins...@googlegroups.com.
To unsubscribe from this group, send email to pyinstaller...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
If you need newer tools (like python 2.6, Qt 4.6, ...) on older linux
distributions you need to compile it yourself or I would recommend
trying gentoo prefix, which automates compilation and installation of
those tools.
http://www.gentoo.org/proj/en/gentoo-alt/prefix/
Hower, to setup such an environment is a bit harder.