libXm.so.3 error"

libXm.so.3 Error on Linux 64 bit

There is a common library error when trying to run a 32 bit program on Linux 64 bit and in most cases it has to do with libXm.so.3 library.

Problem

A common error may look like this...
[hagai@asmsc37 examples]$ pwd
/home/cad/gbr2mic/examples
[hagai@asmsc37 examples]$ ../bin/gbr2mic
../bin/gbr2mic: error while loading shared libraries: libXm.so.3: wrong ELF class: ELFCLASS64
[hagai@asmsc37 examples]$ 

Solution

  • Downloaded the acslib32linux.zip file
  • unzip acslib32linuz.zip in /usr/lib32
  • ln -s acslib/libXm.so.3 libXm.so.3
  • export LD_LIBRARY_PATH=/usr/lib32