libXp.so.6 error"

libXp.so.6 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 libXp.so.6 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: libXp.so.6: cannot open shared object file: No such file or directory
[hagai@asmsc37 examples]$ 

Solution

  • Downloaded the libX_.tar.gz file
  • gunzip libX_.tar.gz in /usr/local/lib
  • export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH