From owner-freebsd-questions Thu Sep 18 13:28:17 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA04059 for questions-outgoing; Thu, 18 Sep 1997 13:28:17 -0700 (PDT) Received: from Gawain.Houston-InterWeb.COM (interweb.hou.neo.net [206.109.6.62]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA04044 for ; Thu, 18 Sep 1997 13:28:10 -0700 (PDT) Received: from Houston-InterWeb.COM (merlyn.houston-interweb.com [206.109.147.69]) by Gawain.Houston-InterWeb.COM (8.8.5/8.6.12) with ESMTP id PAA11775 for ; Thu, 18 Sep 1997 15:31:06 GMT Message-ID: <34218E50.A6C8D508@Houston-InterWeb.COM> Date: Thu, 18 Sep 1997 15:25:53 -0500 From: "Richard J. Finn" Organization: Houston InterWeb Design, Inc. X-Mailer: Mozilla 4.03 [en] (X11; I; IRIX 6.2 IP22) MIME-Version: 1.0 To: support@freebsd.org Subject: library question Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I recently installed FreeBSD 2.2.2 on a new machine. (The computer is a Pentium 2/266 Mghz machine with 64 megs of RAM and a 9 gig SCSI 2 HD... I just like saying that... not the most powerful machine I've ever used by far... but still pretty nice) I'm having some sort of trouble with ld.so and I don't know even where to start to fix it. Whenever I run certain programs I get an error that: ld.so failed: Can't find shared library "(some library)" Every time the library file does exists and it's exatactly where it's supposed to be. When I try to initdb for PostgreSQL 6.1.1 I get: ld.so failed: Can't find shared library "libpq.so.1.0" Yet I can do a ls on the directory I'm pointing to with the PGLIB env setting (what initdb looks in for the libraries) and there the file is. When I try to run Netscape I get: ld.so failed: Can't find shared library "libXt.so.6.0" When I do a locate on that file I get: /usr/X11R6/lib/libXt.so.6.0 /usr/compat/linux/usr/X11R6/lib/libXt.so.6.0 /usr/compat/linux/usr/i486-linuxaout/lib/libXt.so.6.0 And I also have /usr/X11 symlinked to /usr/X11R6. When I do a locate on ld.so I get: /usr/compat/linux/etc/ld.so.cache /usr/compat/linux/etc/ld.so.conf /usr/compat/linux/lib/ld.so /usr/compat/linux/lib/ld.so.1.7.14 /usr/libexec/ld.so /usr/share/man/cat1/ld.so.1.gz /usr/share/man/man1/ld.so.1.gz /var/run/ld.so.hints Any ideas? -- Richard J. Finn rfinn@houston-interweb.com CTO - Houston InterWeb Design, Inc. http://www.houston-interweb.com/