From owner-freebsd-questions Thu Aug 8 00:38:15 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA18663 for questions-outgoing; Thu, 8 Aug 1996 00:38:15 -0700 (PDT) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.225.2]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id AAA18644 for ; Thu, 8 Aug 1996 00:38:10 -0700 (PDT) Received: from gilberto.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.31.2]) by Campino.Informatik.RWTH-Aachen.DE (RBI-Z-5/8.6.12) with ESMTP id JAA00786; Thu, 8 Aug 1996 09:33:40 +0200 Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.6.11/8.6.9) id JAA17215; Thu, 8 Aug 1996 09:46:51 +0200 From: "Christoph P. Kukulies" Message-Id: <199608080746.JAA17215@gilberto.physik.rwth-aachen.de> Subject: Re: Determining needed libraries for X To: mcquiggi@sfu.ca (Kevin McQuiggin) Date: Thu, 8 Aug 1996 09:46:50 +0200 (MET DST) Cc: questions@freebsd.org In-Reply-To: <199608080451.EAA18695@fraser.sfu.ca> from Kevin McQuiggin at "Aug 7, 96 09:51:35 pm" Reply-To: Christoph Kukulies X-Mailer: ELM [version 2.4ME+ PL16 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Hi All: > > I asked this question a couple of weeks ago, but have lost the answer > to it. It's sort of a unix question, but as I'm involved in > installing packages under X, it applies here as well. > > When I install a new package, how can I determine which libraries > will be required? Otherwise I get prompted one by one and have to > locate/install them from the CD. > > There's a simple utility/command that you run on the executable and > it spits out just the names of the external libraries the program > uses. Run ldd on the executable. This gives you a list of shared libs and tells you whether the libs are found or not. > > I've racked my brain (and looked for the little bit of paper that got > lost) but can't recall it. It's NOT nm, which gives a ton of info. > This command just spits out the needed libraries one per line. I do > recall that it's a command/utility with one or two modifiers. > > I'm going nuts! I can't remember it! Any help appreciated. > > Kevin > > -- > Kevin McQuiggin VE7ZD > mcquiggi@sfu.ca > --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de