Hi people,
I have a 64 bit Centos machine. My problem is that I can't run 32 bit applications on that. I can compile with the 32 bit option my sources, but when I'm trying to run them I obtain the following error message:
-bash: ./a.out: cannot execute binary file And the file a.out returns the following: a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
Any suggestions what I have to install or any links.
Thanx
s
--------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
On Tue, 5 Feb 2008, Rozsa Sandor wrote:
Hi people,
I have a 64 bit Centos machine. My problem is that I can't run 32 bit applications on that. I can compile with the 32 bit option my sources, but when I'm trying to run them I obtain the following error message:
-bash: ./a.out: cannot execute binary file And the file a.out returns the following: a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
Any suggestions what I have to install or any links.
A shot in the dark, but have you tried installing the compat libraries? Maybe something as simple as yum install compat*
Scott
Thanx
s
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
On Feb 5, 2008 10:16 AM, Scott Ehrlich scott@mit.edu wrote:
On Tue, 5 Feb 2008, Rozsa Sandor wrote:
Hi people,
I have a 64 bit Centos machine. My problem is that I can't run 32 bit applications on that. I can compile with the 32 bit option my sources, but when I'm trying to run them I obtain the following error message:
-bash: ./a.out: cannot execute binary file And the file a.out returns the following: a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
Any suggestions what I have to install or any links.
A shot in the dark, but have you tried installing the compat libraries? Maybe something as simple as yum install compat*
A more targeted approach: run "ldd a.out" and see what 32-bit libraries your 32-bit binary is expecting to have available. -- Jeff
A more targeted approach: run "ldd a.out" and see what 32-bit libraries your 32-bit binary is expecting to have available.
I should have also said that you need to install the 32-bit versions of libraries separately. The base CentOS install may have some 32-bit libs installed, but if you need to install more you will have to specify the i386 version to yum. -- Jeff
Rozsa Sandor wrote:
Hi people,
I have a 64 bit Centos machine. My problem is that I can't run 32 bit applications on that. I can compile with the 32 bit option my sources, but when I'm trying to run them I obtain the following error message:
-bash: ./a.out: cannot execute binary file And the file a.out returns the following: a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
$ ldd ./a.out
should list any required .so libraries