From owner-freebsd-questions@FreeBSD.ORG Tue Dec 29 16:32:54 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C233A1065672 for ; Tue, 29 Dec 2009 16:32:54 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 7B3998FC24 for ; Tue, 29 Dec 2009 16:32:54 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.3/8.14.3) with ESMTP id nBTGWrKT045254; Tue, 29 Dec 2009 09:32:53 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.3/8.14.3/Submit) with ESMTP id nBTGWr30045251; Tue, 29 Dec 2009 09:32:53 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Tue, 29 Dec 2009 09:32:53 -0700 (MST) From: Warren Block To: stan In-Reply-To: <20091229140857.GA4677@teddy.fas.com> Message-ID: References: <20091229140857.GA4677@teddy.fas.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (wonkity.com [127.0.0.1]); Tue, 29 Dec 2009 09:32:53 -0700 (MST) Cc: Free BSD Questions list Subject: Re: What port contains libxcb.so.2, and hoow could I figure this out? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Dec 2009 16:32:54 -0000 On Tue, 29 Dec 2009, stan wrote: > One of my machines is suddenly complaining that it can't find libxcb.so.2. > This is probably an issue related to a recent attempt to update the software > on this machine, so I figured I'd just rebuild the port that provides this > library, but I can't figure out how to determine which on that would be. > > I have the feeling that I should be able to use pkg_info for this, but I > can't seem to figure out how to accomplish this. Is this the right tool? If > so, how do I use it for this, if not, what is the correct tool? pkg_which will do it if you can provide the full path to the missing file. Which is easy if you already have the file installed and can find the full path (locate libxcb.so.2), but not so easy if it's missing. Sometimes, a simple "whereis" will help: % whereis libxcb libxcb: /usr/ports/x11/libxcb If the port is missing or outdated, pkgdb -F ought to let you install it. And of course there's always crushing brute force: % find /usr/ports -name pkg-plist -exec grep libxcb.so.2 {} + /usr/ports/x11/libxcb/pkg-plist:lib/libxcb.so.2 -Warren Block * Rapid City, South Dakota USA