Install libstdc++.so.5 on Ubuntu 10.04 64-bit
I recently got a new laptop and, as often in that case, had to install a fresh Ubuntu 10.04 64-bit (to replace a Windows XP) and all the software and tools I need as a developer.
One of the software I had to install was the Tibco Enterprise Messaging Service (an implementation of the Java Message Service, JMS). The installation went fine (I had to deactivate all the visual effects in order to see the content of the dialog boxes though - under System > Preferences > Appearance) but I had some troubles starting EMS.
/opt/tibco/ems/5.0/bin/tibemsd: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
EMS requires libstdc++.so.5 but only libstdc++.so.6 is nowadays bundled with Ubuntu. After some Googling I finally came across a solution that worked.
$ wget http://security.ubuntu.com/ubuntu/pool/universe/i/ia32-libs/ia32-libs_2.7ubuntu6.1_amd64.deb $ dpkg-deb -x ia32-libs_2.7ubuntu6.1_amd64.deb ia32-libs $ sudo cp ia32-libs/usr/lib32/libstdc++.so.5.0.7 /usr/lib32/ $ cd /usr/lib32 $ sudo ln -s libstdc++.so.5.0.7 libstdc++.so.5
If you have another solution that you’d like to share, please leave a comment!