Installation error: error while loading shared libraries: libXm.so.3 – part 2

Problem

I have followed your instructions and download the libXm.so.3 file but i am still getting the following error message: [kirkpat@kirkpat Download]$ su Password: [root@kirkpat Download]# ll total 6060 -rw-rw-r--. 1 kirkpat kirkpat 1120 2009-

Solution

ASReml is not finding libXm.so.3 because it is not on one of the standard search paths. As always, there are a number of possible solutions:

First locate libXm.so.3. It is quite possibly in /opt/openmotif/usr/lib. If you cannot find it you will have to use find, and alter my suggestions below appropriately:

find / -name libXm.so.3 -print

Then you have a choice of:

1. Create a link from one of the standard locations, e.g. /usr/lib or /usr/X11R6/lib, to the file you have found.

 ln -s /opt/openmotif/usr/lib/libXm.so.3 /usr/X11R6/lib/libXm.so.3

2. Add /opt/openmotif/usr/lib to the ld.so config files (see man ldconfig).

3. Add /opt/openmotif/usr/lib to the LD_LIBRARY_FILES environment variable, most easily done within the ASReml script, by inserting the lines

 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/X11R6/lib
 export LD_LIBARY_PATH

after “export ASREMLTEMP”

I would suggest the third choice is simplest.

Applies to:

  • ASReml 2 for Linux

Discussion

Comments are disallowed for this post.

Comments are closed.