When a shared library is missing, you typically need to install the package that provides the required library. The exact package name and installation method depend on your Linux distribution. Below are some common examples:
Fedora 7
Error:
error while loading shared libraries: libXp.so.6: cannot open shared object file: No such file or directorySolution:
yum install libXpNote
Note the correct capitalization: uppercase X, lowercase p.
RHEL 5 (64-bit)
Error:
/opt/t32/bin/pc_linux/t32mppc: error while loading shared libraries: libXmu.so.6: wrong ELF class: ELFCLASS64Cause:
Not all required 32-bit libraries are installed on the 64-bit system.
Solution:
Install the 32-bit version of the libXmu package along with its dependencies.
Example:
yum install libXmu.i386
Ubuntu 12.04 (64-bit)
Error:
error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directorySolution:
sudo apt-get install libjpeg62openSUSE 13.1 (64-bit)
Error 1:
error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directorySolution:
Install the missing package using YaST or zypper:
sudo zypper install libjpeg62Error 2:
error while loading shared libraries: libXp.so.6: cannot open shared object file: No such file or directorySolution:
sudo zypper install libXp6
Add a comment