Operating System - HP-UX
1754292 Members
3399 Online
108813 Solutions
New Discussion юеВ

Re: How to find which share libraries are using by the program

 
SOLVED
Go to solution
Camel_1
Valued Contributor

How to find which share libraries are using by the program

Hi there,

I had received a utlity program and I copied into my server then tried to execute but failed. It's complainted some share library files not found, after I copied that particular share library files then the program another one. How can I find out which share library files are using by that program in one shot? I tried the "what" command but it'd show any lib info.

Thanks.
5 REPLIES 5
Robert-Jan Goossens
Honored Contributor

Re: How to find which share libraries are using by the program

Hi Simon,

lsof ?

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.69/

Hope this helps,
Robert-Jan
RAC_1
Honored Contributor

Re: How to find which share libraries are using by the program

Get lsof from porting centre.
There is no substitute to HARDWORK
Christian Gebhardt
Honored Contributor
Solution

Re: How to find which share libraries are using by the program

Hi

try "chatr "

It shows you if SHLIB_PATH is used to search
libraries and maybe a list necessary libraries.

Chris
A. Clay Stephenson
Acclaimed Contributor

Re: How to find which share libraries are using by the program

The utility you want is ldd - list dynamic dependencies.

e.g.
ldd /usr/bin/vi

Man ldd for details.
If it ain't broke, I can fix that.
Camel_1
Valued Contributor

Re: How to find which share libraries are using by the program

Thanks a lot, chatr and ldd shows the info I need.

Regards,