How find out dependences for a software?
gordonwkfhk at hotmail.com
Sat Mar 16 12:18:06 PST 2002
Thx I will try it.
"Gerard Beekmans" <gerard at linuxfromscratch.org> wrote in message
news:20020316114608.I5096 at gwaihir.linuxfromscratch.org...
> On Sat, Mar 16, 2002 at 11:42:53AM -0500, Gerard Beekmans wrote:
> > strace -q -e trace=execve -f -F -o procinfo.logfile
> I forgot to add, the output of strace can contain a lot of duplicate
> Say gcc may be run 10 times if there are 10 source files to compile, then
> as and ld are run 10 times too and so on. After strace run something like
> cat proinfo.logfile | grep -v "Child exited" | grep -v "ENOENT" | \
> grep -v "execve resumed" | cut -f 2 -d "\"" | \
> sort | uniq > procinfo.logfile.cleanedup
> This'll remove some cruft like "execve resumed" message and others that
> don't care about. Then cut -f -2 -d "\"" will cut out the program name
> was run (remember I only captured for execve, you may need to change this
> if you wnat to capture more), sort will sort the list and then uniq will
> remove duplicate lines so you're left with exactly one of each command
> was run.
> Gerard Beekmans
> -*- If Linux doesn't have the solution, you have the wrong problem -*-
> Unsubscribe: send email to listar at linuxfromscratch.org
> and put 'unsubscribe lfs-support' in the subject header of the message
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message
More information about the lfs-support