isn't there a command to find so files other than find?

isn't there a command to find so files other than find?

Post by Jeff D. Haman » Mon, 02 Jun 2003 09:47:25



I thought I had used a command (ldconfig?) to find the lib/so and header
files (or maybe the include paths for libraries) before. Is there such a
thing?
 
 
 

isn't there a command to find so files other than find?

Post by Mike Tod » Mon, 02 Jun 2003 16:20:31


Jeff,

I prefer using the locate command.

First issue the command:  /usr/libexc/locate.updatedb

After is completes, find files by using the string you expect to find in the
path/filename.extension.  For instance, to find files containing ".so",
issue the command:

locate .so | more

Pipe to more because you will get a lot of results to review...

--

Mike Todd
Director, Engineering, G Services www.gservices-us.com

President, Mike Todd Associates www.MikeTodd.com
Supporting the Digital Coast

President, Internet Society Los Angeles Chapter www.ISOC-LA.org

Center for Entrepreneurship and Technology Law
Pepperdine University School of Law



I thought I had used a command (ldconfig?) to find the lib/so and header
files (or maybe the include paths for libraries) before. Is there such a
thing?

 
 
 

isn't there a command to find so files other than find?

Post by S. Anthony Sequeir » Mon, 02 Jun 2003 16:44:15



> Jeff,

> I prefer using the locate command.

> First issue the command:  /usr/libexc/locate.updatedb

> After is completes, find files by using the string you expect to find in the
> path/filename.extension.  For instance, to find files containing ".so",
> issue the command:

> locate .so | more

> Pipe to more because you will get a lot of results to review...

Jeeze!

LDCONFIG(8)             FreeBSD System Manager's Manual            LDCONFIG(8)

NAME
     ldconfig - configure the shared library cache

SYNOPSIS
     ldconfig [-aout | -elf] [-Rimrsv] [-f hints_file] [directory | file ...]

DESCRIPTION
     The ldconfig utility is used to prepare a set of ``hints'' for use by the

--
Tony

 
 
 

isn't there a command to find so files other than find?

Post by Stephen Montgomery-Smit » Mon, 02 Jun 2003 16:48:15



> I thought I had used a command (ldconfig?) to find the lib/so and header
> files (or maybe the include paths for libraries) before. Is there such a
> thing?

Maybe you mean ldd, which can be used to find the .so files associated with a
particular dynamically linked binary, for instance:

# ldd `which vi`
/usr/bin/vi:
         libncurses.so.5 => /usr/lib/libncurses.so.5 (0x480a8000)
         libc.so.4 => /usr/lib/libc.so.4 (0x480ea000)

--
Stephen Montgomery-Smith

http://www.math.missouri.edu/~stephen

 
 
 

isn't there a command to find so files other than find?

Post by Jeff D. Haman » Tue, 03 Jun 2003 00:35:11


I believe that's the one.... sadly it's on FreeBSD (which I'd rather be
using) and not on Cygwin.

Jeff.



> > I thought I had used a command (ldconfig?) to find the lib/so and header
> > files (or maybe the include paths for libraries) before. Is there such a
> > thing?

> Maybe you mean ldd, which can be used to find the .so files associated
with a
> particular dynamically linked binary, for instance:

> # ldd `which vi`
> /usr/bin/vi:
>          libncurses.so.5 => /usr/lib/libncurses.so.5 (0x480a8000)
>          libc.so.4 => /usr/lib/libc.so.4 (0x480ea000)

> --
> Stephen Montgomery-Smith

> http://www.math.missouri.edu/~stephen

 
 
 

isn't there a command to find so files other than find?

Post by Stephen Montgomery-Smit » Tue, 03 Jun 2003 03:25:41



> I believe that's the one.... sadly it's on FreeBSD (which I'd rather be
> using) and not on Cygwin.

> Jeff.




> >>I thought I had used a command (ldconfig?) to find the lib/so and header
> >>files (or maybe the include paths for libraries) before. Is there such a
> >>thing?

> >Maybe you mean ldd, which can be used to find the .so files associated

> with a

> >particular dynamically linked binary, for instance:

> ># ldd `which vi`
> >/usr/bin/vi:
> >         libncurses.so.5 => /usr/lib/libncurses.so.5 (0x480a8000)
> >         libc.so.4 => /usr/lib/libc.so.4 (0x480ea000)

Maybe
strings `which vi` | grep "\.so"
will be a good enough replacement for you.

--
Stephen Montgomery-Smith

http://www.math.missouri.edu/~stephen

 
 
 

isn't there a command to find so files other than find?

Post by Donn Mille » Tue, 03 Jun 2003 03:46:51



> I believe that's the one.... sadly it's on FreeBSD (which I'd rather be
> using) and not on Cygwin.

To find DLL's a Windows app is linked to:

strings program.exe | grep -i '\.dll'

To find so's (shared libs) a unix app is linked to:

strings program| grep -i '\.so'

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----