I've heard that linux binaries are not portable, but I'm not sure what exactly is meant by this. If I have a statically linked binary, would it have a good chance of running on another linux distro? My app is an old RedHat 7.3 gui that uses wxWidgets, and I might need to port it to SUSE 9.x. I was curius if it should run "as is", maybe by just supplying any other Redhat binaries it expects to find. When I google "portable linux binaries", the stuff I find makes it sound like this wont work. Yet, I believe nVidia (and perhaps others) release a "universal binary for linux". So maybe it does work? Any suggestions? thanks!
On Friday 31 March 2006 4:41 pm, Xn Nooby wrote:
I've heard that linux binaries are not portable, but I'm not sure what exactly is meant by this. If I have a statically linked binary, would it have a good chance of running on another linux distro? My app is an old RedHat 7.3 gui that uses wxWidgets, and I might need to port it to SUSE 9.x. I was curius if it should run "as is", maybe by just supplying any other Redhat binaries it expects to find.
When I google "portable linux binaries", the stuff I find makes it sound like this wont work. Yet, I believe nVidia (and perhaps others) release a "universal binary for linux". So maybe it does work? For the most part, a binary built on a Red Hat system could run on a SuSE system and vice-versa with some qualification. Since the binary is statically linked, you probably will not have library compatibility issues. I've actually run some binaries I've built on a RH 7.1 (2.4 kernel) system on a Fedora Core 2 as well as SUSE 9.x. Try it and see if it works.
-- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
participants (2)
-
Jerry Feldman
-
Xn Nooby