Linux – error while loading shared libraries: libXinerama.so.1: cannot open shared object file: No such file or directory

linuxUbuntu

im getting this error when trying to run

vmware-vcenter-converter

/usr/lib/vmware-vcenter-converter-standalone/converter-gui: error while loading shared libraries: libXinerama.so.1: cannot open shared object file: No such file or directory

locate libXinerama

result as following

 /usr/lib/vmware/lib/libXinerama.so.1
/usr/lib/vmware/lib/libXinerama.so.1/libXinerama.so.1
/usr/lib/vmware-installer/2.1.0/lib/lib/libXinerama.so.1
/usr/lib/vmware-installer/2.1.0/lib/lib/libXinerama.so.1/libXinerama.so.1
/usr/lib/x86_64-linux-gnu/libXinerama.so.1
/usr/lib/x86_64-linux-gnu/libXinerama.so.1.0.0

my box arch :
Ubuntu 13

uname -a
 3.11.0-14-generic #21-Ubuntu SMP Tue Nov 12 17:04:55 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

i was trying to install different package to fix this issue , no luck

Any tips to fix missing shared libs

Best Answer

From the output of ldd, it would seem that converter-gui is running on 32-bit libs.
You will need to install the 32bit version of all the libs missing from the ldd output

libvmomi.so.1.2 => not found
libvmacore.so.1.2 => not found
libtypes.so => not found
libXinerama.so.1 => not found
libexpat.so.0 => not found
libConverterWizard.so => not found
libconverterLogicTypes.so => not found
libconverterTypes.so => not found

Which should just involve a apt-get install for xinerama and expat
apt-get install libxinerama1:i386 and apt-get install libexpat1:i386

If you have the rest of the missing libs on the system already, you'll need to point the program to the location where the libs are located with export LD_LIBRARY_PATH=/path/to/i386/vm/libs:$LD_LIBRARY_PATH

Related Question