Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions
User Name
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.


  Search this Thread
Old 09-30-2013, 07:49 PM   #1
Registered: May 2008
Posts: 87

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/ 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

 Package             Arch        Version                     Repository    Size
 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
 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
Senior Member
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,849
Blog Entries: 36

Rep: Reputation: 455Reputation: 455Reputation: 455Reputation: 455Reputation: 455
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
Registered: May 2008
Posts: 87

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 02:01 PM.

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