LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Error while loading shared libraries (https://www.linuxquestions.org/questions/linux-software-2/error-while-loading-shared-libraries-223609/)

newuser455 08-28-2004 03:47 PM

Error while loading shared libraries
 
I just bought a cyberpower batery backup for my linux box running RH7.1. I am trying to install the auto shutdown software. Whenever I try to install it it says installed successfully then says underneath that "error while loading shared libraries: libstdc++.so.5: cannot load shared object file: No such file or directory".

Could someone please help me on this one? Any help would be great.

Thanks,

:newbie:

foo_bar_foo 08-28-2004 04:04 PM

first i'm thinking you need an old version of libc++ for backward compatability
but then i read you are using rh7.1 so this is actually something newer than you have which could prove tricky cause your system is made with a very old version of gcc

see if this will install
http://www2.linuxforum.net/RPM/redha....2-7.i386.html

that seems to be about as far back as that goes

the only other thing i can think of is to just copy the lib from a more modern version of redhat
and stick it in /usr/lib and see if that works (this is what i would do)

or try to upgarde gcc to 3.x but i'm wondering if that won't break things ??

another solution is to leave gcc2.9 or whatever as your system compiler and hand compile a version of gcc3.x and leave the default path (don't use --prefix=/usr in the configure)
that way it will install in /usr/local and just be an extra compiler and will also in the process make you that libstdc++ you need
then just copy the lib from /usr/local/lib to /usr/lib or make a link

newuser455 08-28-2004 07:10 PM

Do you think things would be alot eisier with RH9? I am also having many boot up problems such as when it checks for new hardware and whenever I try to install an rpm I get the error Segmentation fault (core dumped).


All times are GMT -5. The time now is 03:11 AM.