Thursday, May 26, 2011

libstdc++.so.5: cannot open shared object file

Fix the error

** Unable to load Mozilla for hosted mode **
java.lang.UnsatisfiedLinkError: /home/alexey/java/maven-2.2.1/repository/1/gwt-linux-1.7.1/mozilla-1.7.12/libxpcom.so: libstdc++.so.5: cannot open shared object file: No such file or directory

http://unix-blog.ru/2010/01/ustanovka-biblioteki-libstdc5-v-ubuntu-9-10/
http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-3.3/


For the 32 Bit Ubuntu:

wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-20~karmic1_i386.deb
sudo dpkg -i libstdc++5_3.3.6-20~karmic1_i386.deb

For the 64 Bit Ubuntu:

wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-20~karmic1_i386.deb
sudo dpkg --force-architecture -i libstdc++5_3.3.6-20~karmic1_i386.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-20~karmic1_amd64.deb
sudo mv /usr/lib/libstdc++.so.5* /usr/lib32/
sudo dpkg -i libstdc++5_3.3.6-20~karmic1_amd64.deb

No comments: