LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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.

Notices


Reply
  Search this Thread
Old 12-30-2012, 05:34 PM   #1
jjscott
Member
 
Registered: Dec 2012
Posts: 33

Rep: Reputation: Disabled
Problem installing 32-bit application on 64-bit CentOS


I’m running into issues trying to execute a .run file on Centos 6.3. I have both Gnome & KDE installed and I’m booting to the KDE desktop. At first, the .run file wouldn’t even execute. Every time I tried to execute it I received “cannot execute a binary file”. I tried it running it from the CL & GUI Desktop. The CL tossed the previously stated error and the GUI did absolutely nothing. I’ve tried running it with “sh filename.run” * “./filename.run” with the same failed results.

I checked the file type with “file filename.run” and here’s what it returned: “ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), statically linked, stripped”. I did some research and found that Centos is 64 bit and this executable is 32 bit. The post I read said I don’t have the 32 bit libraries installed so I installed them with “yum install glibc.i686” per the posters suggestion. When I run the file from the CL with “sh filename.run” I get the same “cannot execute a binary file” message. If I run it with “./filename.run” it does execute and prompts me for the installation information like the path and such, but the installation is not execute in GUI mode. It runs like a normal script providing prompts on the CL for input. The problem is that not all of the inputs are displayed to the user or prompted.

Now I know this installation will run in GUI mode because I tested it on an old 32-bit Centos 5.4 system I have and it runs fine and in GUI mode. I’m obviously missing some library or supporting Linux package and I’m hoping that someone can help me out.
 
Old 12-30-2012, 08:32 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,782

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
If you run ldd on the binary file ("ldd /path/to/filename.run") it should tell you what libraries you are missing. Then it's just a matter of finding out what package provides those libraries.
 
Old 12-30-2012, 09:38 PM   #3
jjscott
Member
 
Registered: Dec 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rknichols View Post
If you run ldd on the binary file ("ldd /path/to/filename.run") it should tell you what libraries you are missing. Then it's just a matter of finding out what package provides those libraries.
Tried it. It returned "not a dynamic executable".
 
Old 12-31-2012, 12:55 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,782

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
Sorry, I overlooked where you did say that the file command reported "statically linked." My guess at this point is that the program is doing its own check to see what GUI libraries are available. If the program does not have some option to report what it wants, all I can suggest is to use strace to see what library files it is looking for.
Code:
strace -o /tmp/trace.out -e trace=file filename.run
Take a look at the resulting trace.out file and see what files with "lib" in the path the program is checking for.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 64 Bit Itanium - Need to run 32 bit application. HELP Squerl101 Linux - Server 2 11-02-2011 02:30 PM
[SOLVED] 64 bit processor - 64 bit OS - 64 bit application amodpandey Linux - General 5 09-14-2011 07:07 PM
[SOLVED] Installing 32 bit RPMs on 64 bit Linux conflicts with 64 bit packages gheibia Linux - Server 1 08-18-2011 01:33 AM
compiling 32 bit application on 64 bit linux(x86_64) uttam_h Linux - Software 16 07-19-2008 02:33 PM
64-bit or 32-bit Application on 64-bit Linux jjana123 Linux - General 4 05-06-2008 05:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration