Re: XForms: libforms.so.0.88

Steve Lamont (spl@szechuan.ucsd.edu)
Wed, 9 Dec 98 06:50:12 PST

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

> Thanks for my first question about the "main()" , but now, when i
> try to run the executable archive "teste" ( after i compile, of
> course ), a message returns:

> ----------------------------------
> ld.so.1: teste: fatal: libforms.so.0.88: can't open file: errno=2
> Killed
> ----------------------------------

It seems as if the XForms library is not installed in any of the
standard places where the dynamic loader looks for libraries. You can
avoid this by using the LD_LIBRARY_PATH environment variable or by
using a command line option when you compile. To set the
LD_LIBRARY_PATH do something like

setenv LD_LIBRARY_PATH /the/path/to/libforms.so.0.88

where `/the/path/to/libforms.so.0.88' is where `libforms.so.0.88'
lives. For example, if you've put `libforms.so.0.88' in
`/home/myplace/libraries' then you'd set

setenv LD_LIBRARY_PATH /home/myplace/libraries

and then run your application.

You will have to do this every time you log in and want to run your
application.

A better alternative is to install `libforms.so.0.88' in a standard
place. The XForms `Makefile' will generally install the library in
the correct place for your operating system.

If you can't do this and you don't want to go through the
LD_LIBRARY_PATH business every time (and don't want to stick it in
your .cshrc or equivalent shell startup file if you're running some
other shell), then you may need to instruct the loader at link time
where to tell the dynamic loader where to look for the library. Since
this syntax varies from operating system to operating system, I can't
instruct you exactly how to go about doing this. Consult your
system's man pages for your compiler, `ld', and/or `ld.so' for
instructions.

Finally, you could link the XForms library statically rather than
dynamically. This, again, is system dependent so you should read your
manual pages for the compiler and loader thoroughly for instructions.

spl
_________________________________________________
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/