Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Apr 1999 16:16:05 +0930
From:      Greg Lehey <grog@lemis.com>
To:        flygt@sr.se, FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Finding what libs a program depends on
Message-ID:  <19990409161605.P2142@lemis.com>
In-Reply-To: <19990409082811.A79374@sr.se>; from Gunnar Flygt on Fri, Apr 09, 1999 at 08:28:11AM %2B0200
References:  <19990409082811.A79374@sr.se>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday,  9 April 1999 at  8:28:11 +0200, Gunnar Flygt wrote:
> My memory is short, and I know it has been desvribed several times here,
> but how can I find out what library dependensies a program has got?

ldd:

  $ ldd /usr/local/bin/emacs
  /usr/local/bin/emacs:
          -lXaw.6 => /usr/X11R6/lib/aout/libXaw.so.6.1 (0x2011d000)
          -lXmu.6 => /usr/X11R6/lib/aout/libXmu.so.6.0 (0x20150000)
          -lXt.6 => /usr/X11R6/lib/aout/libXt.so.6.0 (0x2015f000)
          -lX11.6 => /usr/X11R6/lib/aout/libX11.so.6.1 (0x2019b000)
          -lSM.6 => /usr/X11R6/lib/aout/libSM.so.6.0 (0x2022b000)
          -lICE.6 => /usr/X11R6/lib/aout/libICE.so.6.3 (0x20233000)
          -lXext.6 => /usr/X11R6/lib/aout/libXext.so.6.3 (0x20244000)
          -lutil.2 => /usr/lib/aout/libutil.so.2.2 (0x2024d000)
          -ltermcap.2 => /usr/lib/aout/libtermcap.so.2.2 (0x20254000)
          -lgcc.261 => /usr/lib/aout/libgcc.so.261.0 (0x20258000)
          -lm.2 => /usr/lib/aout/libm.so.2.0 (0x2025c000)
          -lc.3 => /usr/lib/aout/libc.so.3.1 (0x20276000)

Greg
--
When replying to this message, please copy the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address, home page and phone numbers
finger grog@lemis.com for PGP public key


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990409161605.P2142>