Re: fatal error

Steve Lamont (spl@szechuan.ucsd.edu)
Wed, 29 Jan 97 09:07:05 PST

To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> I just download xforms-0.84, and install it to my machine(SGI,irix 5.3) very
> successfully, while I run demo or any executable in DEMOS, they don't work,
> and show
> " Fatal Error :cannot map soname 'libforms.so.0.84' using any of the
> filename /usr/lib/libforms.so.0.84, ..."

#include <standard_rant_about_shared_object_libraries_being_the_spawn_of_Satan>

If your libraries are not in the Standard Places, then the SGI ld.so
needs to be to told where the libraries live, either by a loader
directive (at the time the executable is built) or via an environment
variable (at run time).

To compile in the library path, do

cc ... -rpath where_your_libraries_live

If you're using gcc, this will be specified as

gcc ... -Xlinker -rpath -Xlinker where_your_libraries_live -B/usr/bin/

The -B/usr/bin/ will be necessary if you have the GNU ld on your
system.

To fix this at run time, set the environment variable LD_LIBRARY_PATH:

setenv LD_LIBRARY_PATH where_your_libraries_live

In the above examples, 'where_your_libraries_live' is obviously a
metasymbol for where your non-standard libraries go.

> but the libforms.so.0.84 is installed automatically in /xforms/FORMS, does
> anybody know how to setup the libarary or something else.

I thought the XForms install put things in /usr/lib. I always end up
modifying the install to put things in /usr/local/lib (IMHO, the Right
Place).

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/xforms-archive/