From owner-freebsd-questions Sat Aug 14 17:44:30 1999 Delivered-To: freebsd-questions@freebsd.org Received: from juno.dsj.net (sylvester.dsj.net [208.148.155.228]) by hub.freebsd.org (Postfix) with ESMTP id 47760150B1 for ; Sat, 14 Aug 1999 17:44:24 -0700 (PDT) (envelope-from dsj@juno.dsj.net) Received: (from dsj@localhost) by juno.dsj.net (8.9.2/8.9.2) id UAA44262; Sat, 14 Aug 1999 20:42:14 -0400 (EDT) (envelope-from dsj) Date: Sat, 14 Aug 1999 20:42:14 -0400 From: "David S. Jackson" To: Sue Blake Cc: freebsd-questions@FreeBSD.ORG Subject: Re: solving a problem Message-ID: <19990814204214.F20961@juno.dsj.net> Reply-To: "David S. Jackson" References: <19990815041512.A376@welearn.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <19990815041512.A376@welearn.com.au>; from Sue Blake on Sun, Aug 15, 1999 at 04:15:13AM +1000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG So then Sue Blake (sue@welearn.com.au) said . . . > I'm looking for the best method of tackling problems such as this one. > The actual solution is not so important. (This is on 3.2-STABLE) > > After uninstalling an old version and reinstalling plan-1.7.2 I get: > /usr/libexec/ld-elf.so.1: Shared object "libXp.so.6" not found > I have no way of knowing what that is or where to get it. First, I would have been suspicious that libXp.so.6 was the target for a link that didn't get found. I've just seen this a lot. The next step I would take is do a pkg_info -aL |grep libXp and see what comes up. Turns out I saw /usr/X11R6/lib/libXp.so.6. That would suggest to me (because of its location) it's an XFree86 library. So, I go pkg_info -L XFree86-3.3.3-1| grep libXp I get: /usr/X11R6/lib/libXp.a /usr/X11R6/lib/libXp.so /usr/X11R6/lib/libXp.so.6 So now I know what package the libraries are supposed to come from. But I don't why they aren't there now. So I do something like ======SNIP===== #!/bin/sh pkgname="XFree86-3.3.3.1" # what package shall I check for? missing="$HOME/missingpkgs" # file to list missing pkgs in rm $missing # don't keep adding to same file for p in $(pkg_info -L $pkgname); do if [ ! -e $p ]; then echo "=====$p is missing!\n" >> $missing else continue # only record files that *aren't* there fi done less $missing # page through the file or print it =======SNIP===== Now I have a list of all files from this package that do not exist on my system. It turns out that sysinstall, IIRC, gives you the option of installing or not installing various servers, font server, libraries, etc, during XFree installation. So, my conclusion: Go and see what options you selected during the XFree86 installation. The libXp.so is probably just a link to libXp.so.6 that should have been installed but didn't get installed, for whatever reason. Just do a ln -s /usr/X11R6/lib/libXp.so.6 /usr/X11R6/lib/libXp.so I hope I read your question correctly and this type of response is what you were looking for. Gurus, I'm very new, so please correct me if I'm running astray here! :-) [Of course, with RPM you'd do something like rpm -v XFree86-3.3.3.1 and that would tell you about whether each component got installed. Probably a similar way to do it with pkg_info, but I am still working with it. :-)] -- David S. Jackson http://www.dsj.net =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= To give your sheep or cow a large, spacious meadow is the way to control him. --Shunryu Suzuki To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message