Wednesday, April 23, 2014

ubuntu 14: error loading libstdc++.so.5

trying to run an app on my ubuntu 14, i got:

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

tried locating if i have libstdc++ installed and found out i have libstdc++.so.6


installing libstdc++.so.5 through apt-get won't return any package

to resolve:

1. download libstdc++.so.5 package
(i used http://packages.ubuntu.com/trusty/i386/libstdc++5/download)

2. extract package
(i extracted by doing a right click > extract hahaha, you can use your command line if you want)

3. then, copy extracted so files to your /usr/lib/ directory
(i did # cp libstdc++5_3.3.6-25ubuntu4_i386/usr/lib/i386-linux-gnu/libstdc++.so.5* /usr/lib/)

try running your app again. those 3 steps did it for me :)

linking my libstdc++.so.6 to libstdc++.so.5 didn't work. a function in .so.5 library doesn't exist in .so.6

(src. http://ubuntuforums.org/showthread.php?t=1282957)

No comments:

Post a Comment

SSH : No matching host key type found. Their offer: ssh-rsa,ssh-dss

Got this while connecting to my mikrotik router via ssh   Unable to negotiate with <ip address> port <ssh port>: no matching hos...