[SOLVED] 32 bit binaries do not run on 64 bit machine
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Here's what I get when I downloaded your "hw32.txt" (renaming it to "hw32.exe"):
$ ls -l hw32.exe
-rwxr-xr-x 1 paulsm paulsm 4940 Feb 27 17:00 hw32.exe
$ file hw32.exe
hw32.exe: 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 hw32.exe
libc.so.6 => /lib/libc.so.6 (0xb7dcb000)
$ chmod +rx hw32.exe
From my earlier post:
1) The initial post seemed to have NOTHING to do with 32- vs 64-bit, and EVERYTHING to do with the correct syntax for invoking a Java program with the correct .jar. Please revisit that at some point before closing this thread.
<= The Java/.jar question is COMPLETELY INDEPENDENT of the 32- vs 64-bit executable question
2) In general, 32-bit apps CAN and DO run without any problem on 64-bit OS's.
<= Even if you DIDN'T have the right runtime libraries for your 32-bit .exe...
the symptoms would NOT be what you've described!!!!!
3) Please cut/paste your exact "hello world" source, compile command and command line output now that you've updated your libraries. If anything's wrong, please run "file hw*" and "ldd hw*" on your "hw" executables, and cut/paste the results.
<= I firmly believe you're simply running the wrong .exe somehow.
Please - PLEASE - recompile, execute (with "./hw32" syntax) and cut/paste everything exactly into your next post.
You'll find all the information you requested in one of the posts of mine in this thread already. Yeah, I ran the correct executable.
Valery and johnsfine's theory seems to be the winning one for now. I'll forward this to red hat on that ticket and see how where it goes. Hopefully this is it. Quite a bit of progress in less than 48 hours.
Thanks! And I'll update when I know something for sure.