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?
missing libstdc++.so.5 on CentOS 5.1
Re: missing libstdc++.so.5 on CentOS 5.1
Yum clearly shows what package one needs;
yum whatprovides libstdc++.so.5
yum install compat-libstdc++-33
yum whatprovides libstdc++.so.5
yum install compat-libstdc++-33
- 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
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.
[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.
Re: missing libstdc++.so.5 on CentOS 5.1
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
# rpm -q centos-release
centos-release-5-1.0.el5.centos.1
# rpm -q --whatprovides libstdc++.so.5
no package provides libstdc++.so.5
Re: missing libstdc++.so.5 on CentOS 5.1
Nevermind, your suggestion works now.
The admin had changed the original repository list.
Thank you!!!!
The admin had changed the original repository list.
Thank you!!!!
-
- Posts: 35
- Joined: 2008/01/18 19:32:38
Re: missing libstdc++.so.5 on CentOS 5.1
[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.
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.