missing libstdc++.so.5 on CentOS 5.1

General support questions including new installations
kurtlloyd
Posts: 3
Joined: 2008/01/23 18:36:56

missing libstdc++.so.5 on CentOS 5.1

Postby kurtlloyd » 2008/01/23 19:40:46

We have two CentOS 5 machines.
One is 5.0 and the other is 5.1.
On the 5.0 machine, /usr/lib/libstdc++.so.5 exists.
On the 5.1 machine it does not.
We apparently need it.
I have not been successful in my search for a yum package to provide it.
Any advice?

Lenard
Posts: 2283
Joined: 2005/11/29 02:35:25
Location: Indiana

Re: missing libstdc++.so.5 on CentOS 5.1

Postby Lenard » 2008/01/23 19:55:37

Yum clearly shows what package one needs;

yum whatprovides libstdc++.so.5
yum install compat-libstdc++-33

User avatar
AlanBartlett
Forum Moderator
Posts: 9310
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: missing libstdc++.so.5 on CentOS 5.1

Postby AlanBartlett » 2008/01/23 19:55:59

It should be available. I've just executed:

$ uname -r
2.6.18-53.1.4.el5
$ rpm -q centos-release
centos-release-5-1.0.el5.centos.1
$ rpm -q --whatprovides libstdc++.so.5
compat-libstdc++-33-3.2.3-61
$


Please check that you have compat-libstdc++-33-3.2.3-61 installed.
If you don't have it, yum install compat-libstdc++-33-3.2.3-61 will do the trick.

Hope this helps.
Alan.

kurtlloyd
Posts: 3
Joined: 2008/01/23 18:36:56

Re: missing libstdc++.so.5 on CentOS 5.1

Postby kurtlloyd » 2008/01/23 20:15:21

Thank you, but I must not have the repo for this:

# rpm -q centos-release
centos-release-5-1.0.el5.centos.1
# rpm -q --whatprovides libstdc++.so.5
no package provides libstdc++.so.5

kurtlloyd
Posts: 3
Joined: 2008/01/23 18:36:56

Re: missing libstdc++.so.5 on CentOS 5.1

Postby kurtlloyd » 2008/01/23 20:38:22

Nevermind, your suggestion works now.
The admin had changed the original repository list.

Thank you!!!!

Erasmus_Darwin
Posts: 35
Joined: 2008/01/18 19:32:38

Re: missing libstdc++.so.5 on CentOS 5.1

Postby Erasmus_Darwin » 2008/01/23 20:41:27

kurtlloyd wrote:
Thank you, but I must not have the repo for this:

# rpm -q centos-release
centos-release-5-1.0.el5.centos.1
# rpm -q --whatprovides libstdc++.so.5
no package provides libstdc++.so.5


That's because the rpm command doesn't use repositories -- it's yum that handles that. The rpm command you tried only checks to see if there is an already installed package that provides libstdc++.so.5. If you use the 'yum install' command as listed in either Lenard's or Alan's post, it should install the package you need.


Return to “CentOS 5 - General Support”

Who is online

Users browsing this forum: No registered users and 7 guests