LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-27-2006, 05:31 PM   #1
shawn_t
LQ Newbie
 
Registered: Feb 2004
Posts: 13

Rep: Reputation: 1
Howto install 32-bit libraries on 64-bit Linux using yum


I am using CentOS 64-bit (version 4.3) and am running into problems where 32-bit libraries are not installed. I have encountered problems with VMWare and needed to install the 32-bit libraries for X11 using the following command:
Code:
yum install xorg-X11-libs.i386
Now, I am having a problem with a proprietary server that was built as a 32-bit application as it can't find libstdc++.so.6. I tried the following command:
Code:
yum install compat-libstdc++-33
but I still get the same error when I try to run our application:
Code:
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
Does anyone know how to find out what yum package to install to get the 32-bit version of libstdc++?

Also, can anyone tell me how to find the package to install for a generic library that is missing? I am anticipating that this problem will come up again so I'd like to learn how to determine which package to install if possible.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 11-27-2006, 05:38 PM   #2
shawn_t
LQ Newbie
 
Registered: Feb 2004
Posts: 13

Original Poster
Rep: Reputation: 1
I found the command searching through some other forums. The following command will install the 32-bit versions of libstdc++:
Code:
yum install libstdc++.i386
Can anybody provide any information on how to do this in the generic case? I.E. if I encounter another missing library?
 
1 members found this post helpful.
Old 02-23-2009, 03:03 PM   #3
unkie888
Member
 
Registered: Aug 2007
Posts: 67

Rep: Reputation: 26
I realise this is an ancient thread, but it could be useful to someone...

if you have a missing library - for example:

Code:
libstdc++.so.5
do;

Code:
>yum whatprovides libstdc++.so.5
compat-libstdc++-33.i386                 3.2.3-61               fedora
then you can do;

Code:
yum install compat-libstdc++-33.i386
and your missing library will be installed.
 
3 members found this post helpful.
Old 06-10-2011, 07:52 PM   #4
Jiggs224u
LQ Newbie
 
Registered: Jun 2011
Location: Minneapolis
Distribution: Fedora/Red Hat
Posts: 1

Rep: Reputation: Disabled
I'm going to dig up an old thread... I was installing Ventrilo server on Fedora 15 64 bit and realized i couldn't install it due to missing libraries. I seen the file that was missing and I found it exactly by using the whatprovides command. That was amazing.. Anyways much thanks!
 
Old 02-11-2012, 10:01 AM   #5
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Rep: Reputation: 30
I know this thread is old, but this saved me a lot of time. Thanks. I hope other people fun this useful.

Code:
yum whatprovides <libname>
The whatprovides should be more documented. I never heard of this until today. This might be yum's must kept secret.

Thanks,
 
Old 02-11-2012, 10:22 AM   #6
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
I always use provides rather than whatprovides, because that is what I learned first and because I don't type very well. Maybe whatprovides is more intuitive, so easier to remember.

Quote:
Originally Posted by djgerbavore View Post
The whatprovides should be more documented. I never heard of this until today. This might be yum's must kept secret.
Unlike many important Linux tools, yum has a very beginner friendly man page. (what)provides is documented there both clearly and early (important for beginner friendly). In other tools some important beginner feature first mentioned on line 4000 of the man page "should be more documented". But that comment is unfair for whatprovides.

Nevertheless, for those too scared of man pages, I'm glad this thread exists.

For Debian based distributions, the corresponding apt functionality seems to be both not installed by default and harder to find in the documentation. I usually give up and instead go to
packages.ubuntu.com and scroll down to Search the contents of packages. Odds are the package which contains fileX in Ubuntu is the same as the package which contains fileX in some other Debian based distribution, so that is an easy place to get the answer, especially if you're looking for the answer at a moment in which you can't run apt (such as while I'm on the Windows computer I'm using right now).

For some major Red Hat based distribution, if someone happens to knows of a similar (public web accessible) substitute for yum provides that would be a nice URL to have posted in this thread.

Last edited by johnsfine; 02-11-2012 at 10:35 AM.
 
Old 03-01-2012, 07:52 PM   #7
csbatoc
LQ Newbie
 
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
Dag Weirs' site http(colon)(slash)(slash)dag.wieers.com/rpm/ is an excellent source for RPM's for older Red Hats. Click on the Installation and Configuration link and look up your release and arch. for most there is a choice of yum or apt repositories.
cheers.
 
Old 06-26-2012, 03:50 PM   #8
rogerp
LQ Newbie
 
Registered: Jun 2012
Posts: 18

Rep: Reputation: Disabled
My apologies, but I've tried and tried all of these suggestions and still cannot get a 32 bit version of libc.so to install on my 64 bit HR6 system. No matter what I install when I check /lib/libc.so - it is still 32 bit and the program which is dependent on it refuses to run.

Please, respond with details on how to download such a file. BTW, I can't find local.conf anywhere - I did a find / -name local.conf.

I also don't know how to change or add repositories - so if this requires some other repository - please indicate how to change or add the repository.

Thanks in advance!
Roger
 
Old 06-26-2012, 03:58 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post # 8, @rogerp : Welcome to LQ.

If it's RHEL 6 : The package name is "glibc.i686"

# yum install glibc.i686
 
Old 06-26-2012, 05:19 PM   #10
rogerp
LQ Newbie
 
Registered: Jun 2012
Posts: 18

Rep: Reputation: Disabled
Unhappy thanks, but ...

I appreciate your quick response and I tried it, with no success. I still don't have a 32 bit libc.so.
Here is what happened:

[root@heather sarah]# yum install glibc.i686
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Package glibc-2.12-1.47.0.2.el6_2.12.i686 already installed and latest version
Nothing to do
[root@heather sarah]#
[root@heather sarah]# file /lib/libc.so
/lib/libc.so: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux 2.4.0, not stripped
[root@heather sarah]#
 
Old 06-26-2012, 06:16 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
he whatprovides should be more documented.
it is
see:
Code:
man yum
and the output of the yum error
i am betting it stated to use "*/" in the search
Code:
yum wp */libGL.so


are you trying to build software ?
if so you have to install the matching -devel package
see:
Code:
yum search glibc

Last edited by John VV; 06-26-2012 at 06:21 PM.
 
Old 06-27-2012, 07:40 AM   #12
rogerp
LQ Newbie
 
Registered: Jun 2012
Posts: 18

Rep: Reputation: Disabled
I am trying to install SAS and getting this error message: "jre/bin/java: error while loading shared libraries: libc.so.6: wrong ELF class: ELFCLASS64".

As I understand it /lib/libc.so should be 32 bit and /lib64/libc.so 64 bit. Or, at least, if it were then I could install SAS - which, appearantly, expects to find a 32 bit libc.so.

So, how can I put a 32 bit libc.so in /lib?

Roger
 
Old 06-27-2012, 08:42 AM   #13
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
You should not have a 64 bit libc.so in /lib in X86_64 RHEL. But you already know that.

I don't have any guess at how things got the way they are in your system, so I have no idea what corrective actions would be safe/effective.

Are the contents of /lib generally wrong? Or just that file?

Is libc.so in /lib64 the same file or different or missing or what?
 
Old 06-27-2012, 10:43 AM   #14
rogerp
LQ Newbie
 
Registered: Jun 2012
Posts: 18

Rep: Reputation: Disabled
OK, somehow only libc.so got replaced - possibly when I was building the GCC compiler.

The /lib64/libc.so looks to be the same file as the /lib/libc.so.

So - how can I get this 32 bit libc.so file? Should not be too hard - right?

Roger
 
Old 06-27-2012, 11:27 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 14

CentOS 6.x
# yum reinstall glibc.i686 glibc-devel.i686


CentOS 4.x, 5.x
# yum reinstall glibc.i386 glibc-devel.i386

.

Last edited by knudfl; 06-27-2012 at 11:35 AM.
 
  


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
yum can't install some groups in 64-bit FC6 markelo Fedora 5 11-07-2006 05:44 AM
32 bit or 64 bit install - is 32 bit easier for a newbie? dms05 Linux - Newbie 3 05-19-2006 03:05 PM
How to install a 32 bit linux on a 64 bit ghost89918 Linux - Newbie 8 02-10-2006 09:45 AM
How to install 32 bit libraries under AMD64 debian? ssobeht Debian 0 02-11-2005 10:14 AM
yum install 64 bit apps doralsoral Linux - Software 1 01-07-2005 07:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:33 PM.

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