Subject: Re: library dependencies ?
To: None <>
From: Space Case <>
List: current-users
Date: 06/02/2001 17:32:42
On Jun 2,  5:05pm, wrote:
>On Sat, Jun 02, 2001 at 04:13:02PM -0700, Space Case wrote:
>> Does anyone have/know of a tool that can check the library dependencies of
>> executables, and flag those whose libraries are missing?

>if you use ksh or bash, you could do something like:
>find $(echo $PATH|tr : ' ') | while read f; do ldd "$f" 2>/dev/null |\
>	grep 'curses\.so\.[23]' 2>&1 >/dev/null; \
>	if [ $? -eq 0 ]; then echo $f; fi; done

Oh, I rather like that.  Now I just have to decide whether I want to run
it for each of the 22 libs that have old majors, or try to shoehorn it all
into the one grep command. ;-)


Steve Allen -   ICQ 6709819

Faith is the quality that enables you to eat blackberry jam on a picnic
without looking to see whether the seeds move.

Contrary to popular belief, Unix is user friendly.  
It just happens to be selective about who it makes friends with.
	-Kyle Hearn  <>

The Kennedy Constant:
	Don't get mad -- get even.