We build our executables using a 32 bit version of GPC (20070904 based on gcc-3.4.6) running on a 32 bit kernel. A customer has tried to run the executable on a 64 bit kernel (Fedora 14) and gets the error message:
manager.e: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory Error 126 whilst executing manager. Press RETURN
I would expect it to be possible to run a 32 binary on a 64 bit system. Is this correct and if so what additional steps might be required?
On 16 Nov 2010, at 12:25, Martin Liddle wrote:
I would expect it to be possible to run a 32 binary on a 64 bit system. Is this correct and if so what additional steps might be required?
The problem is not the kernel, but the libraries: your customer also has to install 32 bit versions of all libraries that your program depends on.
In this case: the problem is the dynamic linker, which is part of the package that installs libc. I guess that installing glibc.i686 should resolve that particular problem.
Jonas
On 16 Nov 2010 at 12:57, Jonas Maebe wrote:
On 16 Nov 2010, at 12:25, Martin Liddle wrote:
I would expect it to be possible to run a 32 binary on a 64 bit system. Is this correct and if so what additional steps might be required?
The problem is not the kernel, but the libraries: your customer also has to install 32 bit versions of all libraries that your program depends on.
[...]
Or you should link everything statically and produce a huge (but self- contained) executable ...
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/