libXm.so.2 problem

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

3 posts / 0 new
Last post
libXm.so.2 problem

Submitted by Anonymous on Fri, 06/29/2001 - 08:42. Developers
Hello,

I just installed OpenMotif on RedHat Linux 6.0 and tried the
example program in Vol. Six A, Ch. 2 from O`Reilly & Assoc.
At first I got 15 undefined references. Adding -lXp to the
linking command got it down to 8. Adding -lXmu reduced
it to zero. Then I tried running it. I got
./hello error in loading shared libraries
libXm.so.2 cannot open shared object file
No such file or directory.

I don`t know what is going on since I have the file
/usr/X11R6/lib/libXm.so.2.1

Help appreciated.

Donald

cabvale

If yuo choose a particular directory for Motif installation, for example /Motif you must add the line

/Motif/lib

in file /etc/ld.so.conf and then run

ldconfig -d

If this is not the problem may be yuo don`t link all necessary libraries at compile time.

Anonymous

Thanks cabvale!

The OpenMotif libraries are in /usr/X11R6/lib which was
already listed in /etc/ld.so.conf. When I used the command
ldconfig -d
I was able to run the program successfully. Apparently, the
installation doesn`t run ldconfig and rebooting doesn`t run it
either on my system.
One question I have is what the -d qualifier means. I
did not see any reference to it in "man ldconfig".

Donald