LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 11-27-2006, 05:31 PM   #1
shawn_t
LQ Newbie
 
Registered: Feb 2004
Posts: 13

Rep: Reputation: 0
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.
 
Old 11-27-2006, 05:38 PM   #2
shawn_t
LQ Newbie
 
Registered: Feb 2004
Posts: 13

Original Poster
Rep: Reputation: 0
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?
 
Old 02-23-2009, 03:03 PM   #3
unkie888
Member
 
Registered: Aug 2007
Posts: 65

Rep: Reputation: 23
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.
 
1 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 Core 8_x86 (latest git kernel)
Posts: 434

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
Senior Member
 
Registered: Dec 2007
Distribution: Mepis, Centos
Posts: 4,012

Rep: Reputation: 731Reputation: 731Reputation: 731Reputation: 731Reputation: 731Reputation: 731Reputation: 731
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.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration