LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 09-30-2013, 07:49 PM   #1
homer_3
Member
 
Registered: May 2008
Posts: 99

Rep: Reputation: 15
Can't find 32 bit libs to run 32 bit prog on 64 bit CentOS


I have a binary that I compiled on a 32 bit version of CentOS 6.4 32bit. I am trying to run in on CentOS 6.3 64 bit. But I got the error "/lib/ld-linux.si.2: bad ELF interpreter: No such file or directory" Google-Fu showed I need to install i386 libs using "yum install glibc.i386" But that gave me the error "No package glibc.i386 available." More Google - try "yum install glibc*"

This showed the following packages to install

Code:
================================================================================
 Package             Arch        Version                     Repository    Size
================================================================================
Installing:
 glibc-devel         x86_64      2.12-1.107.el6_4.4          updates      974 k
 glibc-headers       x86_64      2.12-1.107.el6_4.4          updates      605 k
 glibc-static        x86_64      2.12-1.107.el6_4.4          updates      1.4 M
 glibc-utils         x86_64      2.12-1.107.el6_4.4          updates      160 k
Updating:
 glibc               x86_64      2.12-1.107.el6_4.4          updates      3.8 M
 glibc-common        x86_64      2.12-1.107.el6_4.4          updates       14 M
Installing for dependencies:
 gd                  x86_64      2.0.35-11.el6               base         142 k
 kernel-headers      x86_64      2.6.32-358.18.1.el6         updates      2.3 M
 libXpm              x86_64      3.5.10-2.el6                base          51 k

Transaction Summary
================================================================================
But none of these are i386. Since they are all 64 bit, I doubt they will help any. Is there some other package I can search for to install to allow me to run my 32 bit binary on a 64 bit machine?
 
Old 09-30-2013, 08:19 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
If I recall, CentOS only provides *.i686 packages. yum search glibc-devel should reveal to you both the x86_64 and i686 package versions. Install the 686 package versions for compatibility. Use strace to find all dependencies if all else fails.
 
1 members found this post helpful.
Old 09-30-2013, 08:45 PM   #3
homer_3
Member
 
Registered: May 2008
Posts: 99

Original Poster
Rep: Reputation: 15
Thanks, that got it.
 
  


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
Install 32 bit libs over top of 64 bit Fedora 13? ezrider Fedora 2 10-03-2010 07:26 PM
32/64 bit libs - FC6/gcc 4.1.1 -m32 picking up 64 bit library marier Fedora 0 04-24-2007 12:57 PM
64 bit vs. 32 bit libs and rpm hcastro Linux - Software 0 06-17-2005 02:22 PM
32 bit emulation libs on 64 bit system csfalcon Linux - Software 1 12-23-2004 12:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 01:31 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