[plug] Moving an older app

Craig Ringer craig at postnewspapers.com.au
Wed Jul 2 16:22:24 WST 2003


> Naturally, you'll need to find out not 
> only which libs the app links to, but which libs they in turn depend on. 
> Use "ldd /path/to/library_or_application_file" to get the dependencies 
> of an app, and then use ldd on those dependencies until you have 
> everything. Some libs may also require additional files in /etc, 
> /usr/lib, etc.

Actually, it looks like this:
  LD_TRACE_LOADED_OBJECTS=1
then executing the app might do a full trace back though dependencies 
for you.

Strace is awfully handy for determining what a program is accessing - 
trace it's initialisation with

strace -e trace=file 2>/tmp/filetrace programname

and you can find all the config files that it and any libs it opens are 
using.

Craig Ringer




More information about the plug mailing list