1826138 Members
5275 Online
109690 Solutions
New Discussion

Install package problem

 
SOLVED
Go to solution
Son dam bi
Advisor

Install package problem

When I tried to run a package on RH system, it pops the below messages ,

"error while loading shared libraries: libstdc++.so.2.8: cannot open shared object file: No such file or directory"

I found that , in my system , only have below version of library .

#locate libstdc++.so
/usr/lib/libstdc++.so.5
/usr/lib/libstdc++.so.5.0.7
/usr/lib/libstdc++.so.6
/usr/lib/libstdc++.so.6.0.8


It seems the current version is newer than the package requires , can advise what can I do ? downgrade the library to libstdc++.so.2.8 is suitable ? any risk ? thx

p.s. I can use yum / apt-get as the server is not allow to connect internet .
5 REPLIES 5
Goran Koruga
Honored Contributor

Re: Install package problem

Hello.

You should not downgrade anything, but check if any of the compat-libstdc++ packages provide this library.

Or better yet, recompile whatever is needing this version with a newer version of the compiler.

Regards,
Goran
Son dam bi
Advisor

Re: Install package problem

thx reply,

http://www.rpmfind.net/linux/rpm2html/search.php?query=compat-libstdc%2B%2B+&submit=Search+...

I find the compat-libstdc++-7.3-2.96.118.i386.html package ,

is it the compatible version of libstdc ? should I install it ? if it ask to downgrade any library when installing , then should I downgrade it ? thx
dirk dierickx
Honored Contributor

Re: Install package problem

i'm not sure what you are installing, but i have never seen rpm/up2date/yum ask me to DOWNGRADE anything.

the error in your original post just says a certain file (a library in this case) is missing. it doens't tell you to downgrade.

there 2 possibilities here:

1. you are installing some package which is not build for the RH distrobution you are installing it on. this important, do not install a package for RH2.1 on RH5 or a fedora package on a RH system!

2. you are missing some packkages, most likely it would be the 'compat' rpm's.
Kapil Jha
Honored Contributor
Solution

Re: Install package problem

You should download the rpm again with all dependencies, i suppose.
Downgrade is actually never been a good option it can hurt you hard.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
loco_vikide
Frequent Advisor

Re: Install package problem

Hello,

The current compat-libstdc++ on your system is definitely higher than the compat-libstdc++-7.3-2.96.118.

There might be some packages on your system depend on the current libraries. If that is the case then you don't want to install compat-libstdc++-7.3-2.96.118 which will downgrade current libraries.

As Goran Kogura suggested, try to find the RPM source of the package that you want to install and compile it on your current system then install it.

Good luck.

Cheers.