Error message :shared libraries libstdc++.so.5

I get this error message

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

I’m using SUSE 11.4

when I type rpm -qa ‘libstdc++*’ … I get libstdc++45-4.5.1_20101208-9.8.i586

Please … help me to solve this error

$ zypper what-provides libstdc++.so.5
Loading repository data...
Reading installed packages...
S | Name              | Type    | Version       | Arch   | Repository
--+-------------------+---------+---------------+--------+-----------
  | libstdc++33       | package | 3.3.3-30.25.2 | x86_64 | OSS       
  | libstdc++33       | package | 3.3.3-30.25.2 | i586   | OSS       
  | libstdc++33-32bit | package | 3.3.3-30.25.2 | x86_64 | OSS

Between, on April 18, 2004 gcc 3.4 was released… We have been nearly 8 years without an ABI breakage. Whatever your are trying to run is quite old.

Hi, I get the same error when I try to run a program on my openSUSE system. Then, when I try

zypper install libstdc++.so.5

I get this message

‘libstdc++.so.5’ not found in package names. Trying capabilities.
‘libstdc++33’ providing ‘libstdc++.so.5’ is already installed.
Resolving package dependencies…

Nothing to do.

Would be very grateful if someone could help me with this. Thanks!

You barely give any information. But I guess “zypper in libstdc++33-32bit” is what you need…

I’m sorry about that. I’m working on a 64-bit system, actually, but that worked! Only I get a segmentation fault error now, grr.

Thanks for the help!

On 07/04/12 18:26, sramdas pecked at the keyboard and wrote:
> Hi, I get the same error when I try to run a program on my openSUSE
> system. Then, when I try
>
>> zypper install libstdc++.so.5
>>
> I get this message
>
>> ‘libstdc++.so.5’ not found in package names. Trying capabilities.
>> ‘libstdc++33’ providing ‘libstdc++.so.5’ is already installed.
>> Resolving package dependencies…
>>
>> Nothing to do.
>>
> Would be very grateful if someone could help me with this. Thanks!
>
>

The better command would be:

<code>
zypper wp libstdc++.so.5
Loading repository data…
Reading installed packages…
S | Name | Type | Version | Arch | Repository
–±------------------±--------±--------------±-------±-----------------
| libstdc++33 | package | 3.3.3-30.25.2 | x86_64 | OS 12.1 local
| libstdc++33 | package | 3.3.3-30.25.2 | x86_64 |
openSUSE-12.1-Oss
| libstdc++33 | package | 3.3.3-30.25.2 | i586 |
openSUSE-12.1-Oss
i | libstdc++33-32bit | package | 3.3.3-30.25.2 | x86_64 | openSUSE-12.1-Oss
</code>

As you can see you need to find out which package contains the file in
question and then install the proper package.

HTH

Ken