missing libstdc++.so.5 on CentOS 5.1

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

missing libstdc++.so.5 on CentOS 5.1

Post by 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

Post by 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: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

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

Post by AlanBartlett » 2008/01/23 19:55:59

It should be available. I've just executed:

[b]$ 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
$ [/b]

Please check that you have [b]compat-libstdc++-33-3.2.3-61[/b] installed.
If you don't have it, [b]yum install compat-libstdc++-33-3.2.3-61[/b] 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

Post by 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

Post by 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

Post by Erasmus_Darwin » 2008/01/23 20:41:27

[quote]
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[/quote]

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.

Post Reply