From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 15 19:35:26 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 065961065671; Mon, 15 Sep 2008 19:35:26 +0000 (UTC) (envelope-from thavinci@thavinci.za.net) Received: from thavinci.za.net (mail.e-soul.co.za [196.211.117.44]) by mx1.freebsd.org (Postfix) with ESMTP id 186168FC1F; Mon, 15 Sep 2008 19:35:25 +0000 (UTC) (envelope-from thavinci@thavinci.za.net) Received: from thavinci.za.net (localhost [127.0.0.1]) by thavinci.za.net (Postfix) with ESMTP id F3BA29B492; Mon, 15 Sep 2008 21:35:21 +0200 (SAST) Received: by thavinci.za.net (Postfix, from userid 1002) id D2D5E9B48C; Mon, 15 Sep 2008 21:35:21 +0200 (SAST) Received: from thavinciPC (unknown [192.168.12.110]) by thavinci.za.net (Postfix) with ESMTP id C412F9B43A; Mon, 15 Sep 2008 21:35:21 +0200 (SAST) From: "Marcel Grandemange" To: "'Jeremy Chadwick'" References: <015101c9164a$f3f12d30$dbd38790$@za.net> <20080915093815.GA33139@icarus.home.lan> <002b01c91737$2af8ac30$80ea0490$@za.net> <20080915152631.GA39924@icarus.home.lan> In-Reply-To: <20080915152631.GA39924@icarus.home.lan> Date: Mon, 15 Sep 2008 21:34:39 +0200 Message-ID: <00be01c9176a$182f3910$488dab30$@za.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AckXSD3gZq3IV2CTRASMUmeFV7JkWgAIV6hQ Content-Language: en-us X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-hackers@freebsd.org Subject: RE: Error: Can't find libjava.so X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2008 19:35:26 -0000 > > 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. I did a cvsup on ports to update to latest on FreeBSD7.0 release amd64 Used port /usr/ports/java/Diablo-jre16 Simply did Make Make install Make clean Nothing Fancy... >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. Would make sense! >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) I have not tested this on any other machine, was doing this in a virtual machine to test ups software before deploying... >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. Could you advise me how to do this? Hope you don't mind! >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! Fare Enough! Thank You! -- | 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 | __________ NOD32 3443 (20080915) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com