error while loading shared libraries: libstdc++.so.5:

Asked by Toni

Hello, I am using Ubuntu 14.04 LTS. I am trying the execute a command as follows:

[CODE]ThinkPad-S3-S440:~/SymmRef1.2$ perl addHydrogens.pl 3mge_monomer.pdb[/CODE]

And receive the following error:
[CODE]
/home/toni/SymmRef1.2/reduce.2.21.030604: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
ThinkPad-S3-S440:~/SymmRef1.2$ [/CODE]

I have tried updating as follows:

[CODE]ThinkPad-S3-S440:~$ sudo apt-get install libstdc++5
Reading package lists... Done
Building dependency tree
Reading state information... Done
libstdc++5 is already the newest version.
The following packages were automatically installed and are no longer required:
  linux-headers-3.13.0-32 linux-headers-3.13.0-32-generic
  linux-headers-3.13.0-85 linux-headers-3.13.0-85-generic
  linux-image-3.13.0-32-generic linux-image-3.13.0-85-generic
  linux-image-extra-3.13.0-32-generic linux-image-extra-3.13.0-85-generic
Use 'apt-get autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 9 not to upgrade.
ThinkPad-S3-S440:~$ [/CODE]

But I get the same error. I am a newbie but I think the problem is the binary I am calling is 32 bit and I have 64 bit installed? However I cannot seem to download the correct version as I receive the following message:

[CODE]ThinkPad-S3-S440:~/SymmRef1.2$ sudo apt-get install libstdc++.so.5
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libstdc++.so.5
E: Couldn't find any package by regex 'libstdc++.so.5'
ThinkPad-S3-S440:~/SymmRef1.2$ [/CODE]

I have obviously looked around different forums and on google but have not been able to find a solution, some of the threads on this seem out of date - can anybody help?

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Toni
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For installing the 32bit library you might try

sudo apt-get install libstdc++5:i386

If this does not help, please provide the output of the commands

uname -a
lsb_release -crid
ldd /home/toni/SymmRef1.2/reduce.2.21.030604

Revision history for this message
Toni (kuzumadam) said :
#2

Hi Manfred - thank you. This has now been solved in another forum.

        The 32-bit version of the same library is libstdc++5:i386 which can coexist with the 64-bit library you already have.

Revision history for this message
Toni (kuzumadam) said :
#3

Fixed