Date: Mon, 15 Sep 2008 08:26:31 -0700 From: Jeremy Chadwick <koitsu@FreeBSD.org> To: Marcel Grandemange <thavinci@thavinci.za.net> Cc: freebsd-hackers@freebsd.org Subject: Re: Error: Can't find libjava.so Message-ID: <20080915152631.GA39924@icarus.home.lan> In-Reply-To: <002b01c91737$2af8ac30$80ea0490$@za.net> References: <015101c9164a$f3f12d30$dbd38790$@za.net> <20080915093815.GA33139@icarus.home.lan> <002b01c91737$2af8ac30$80ea0490$@za.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 15, 2008 at 03:30:06PM +0200, Marcel Grandemange wrote: > > I do realize this is probably better suited for freebsd-questions , > however > > haven't received any response and was simply hoping someone would be kind > > enough. > > > > I recently obtained a very decent ups, however it is not supported by NUT. > > > > It does however come with winpower software that does run on FreeBSD. > > > > However it rewuired java. > > > > So installed from ports > > > > And was presented with following error: > > > > Error: can't find libjava.so > > > > This is on system in folder > "/usr/local/Diablo-jre1.6.0/lib/amd64/libjava.so > > >Can you provide the output of "ldconfig -r" from that box? I have > >a feeling the ld.so pathing hints might lack a directory or two. > > > /var/run/ld-elf.so.hints: > search directories: /lib:/usr/lib:/usr/lib/compat:/usr/local/lib This is the problem as I see it. ld.so, which is used for finding and loading shared libraries, is not configured to look in /usr/local/Diablo-jre1.6.0/lib/amd64 for libraries. I'd like to know which port you installed, and how you installed it. Based on the above, it appears to me the port itself may/does have a bug -- it should be updating the hints path to include that directory, but does/is not. Please note I am in no way shape or form familiar with Java or this port. I do not know if this is specific to your machine or not -- however, this is the first time I've seen it mentioned, and I quite active with freebsd-ports. (I'm subscribed to 15 separate FreeBSD mailing lists, and I read/follow them all) Regarding the problem itself: there are ways to work around this by using the environment variable LD_LIBRARY_PATH. I do not recommend this, though -- properly configuring the ld.so search path when a program (or port) is installed is the proper method. Cross-posting to multiple lists is generally shunned upon, so answers to the above questions will help determine if the discussion should be moved to freebsd-ports@ or not. I've a feeling it should be. Thanks! -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080915152631.GA39924>