Archive for the ‘Linux’ Category

After a clean installation of Red Hat Enterprise Linux 5 (RHEL5) with an active subscription, I came across an immediate problem when attempting to run an application. I get the following error:

libXm.so.3: cannot open shared object file: No such file or directory

The first step is to insure that the files are actually missing. The easiest way to confirm if the file exists on the system is to run the locate command. Try the below linux command below which will return a list of similar files.

locate libXm.so

The number after libXm.so is merely the version number. If you are missing libXm.so.3, but you have libXm.so.4, you can create a symbolic link (-s) from file libXm.so version 4 to version 3 with the below linux command.

ln -s libXm.so.4 libXm.so.3

It turns out that I was missing a motif package, and that by installing openmotif (a perfect motif alternative) will quickly resolve the issue. Try the following below:

yum install openmotif22.i386 openmotif22.x86_64

Say yes to both prompts to complete the openmotif installation.