Subject: Re: Shared library not found
To: John Hayward <John.C.Hayward@wheaton.edu>
From: Manuel Bouyer <firstname.lastname@example.org>
Date: 09/06/2000 11:17:44
On Tue, Sep 05, 2000 at 08:24:58PM -0500, John Hayward wrote:
> Dear NetBSDers,
> I recently installed NetBSD-1.5Alpha2. Since I did not find xdvi I
> down loaded the source 22.28, configured, make and make install. It seemed
> to build without a hitch. However when attempting to fire up xdvi I get:
> Shared object "libXaw.so.7" not found
> I can see in /usr/X11R6/lib/ this file and if I set LD_LIBRARY_PATH to
> this directory it fires up fine. There is libXaw.so.6 as well as
> I built X from source from XFree86 version 4.0.1 since I needed the rage
> 128 server.
> Any suggestions on what I should do to build xdvi so it will run without
> setting the environmental path?
You need to path -Wl,-R/usr/X11R6/lib to gcc when linking.
But I would recommend using pkgsrc
which takes care of these details (and many others).
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr