- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Command to know shared-libraries a program will ne...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 03:19 PM
05-17-2004 03:19 PM
I just got back from "dependency-hell" trying to install GNU wget on HP-UX. I did the download from the HP-UX porting site (UK).
When I installed it (using the depot), I then went to run it...I got some dld error messages complaining about libcrypto.sl. ok, I then download openssl. Fine, then I got another error..I needed gettext...so on and on. Now it is working...
My question is. Is there a command to know what shared-libraries a program will need at run time? It will be great to have this since this "trial and error" thing is really no good. It will be great to have something, for example, like this:
Wget needs:
libcrytpo.sl
libcap.sl
libwhatever.sl
libfoofoo.sl
I'll appreciate your help.
Thanks,
Jorge
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 03:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 03:56 PM
05-17-2004 03:56 PM
Re: Command to know shared-libraries a program will need?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 04:18 PM
05-17-2004 04:18 PM
Re: Command to know shared-libraries a program will need?
Run-time dependencies: gettext libiconv openssl perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 06:06 PM
05-17-2004 06:06 PM
Re: Command to know shared-libraries a program will need?
I agree that they are complete, but that list is simply not true.
1. wget doesn't need perl
2. wget only needs openssl when using https or any other secure protocol, and wget can run very nice without openssl when you don't need thos protocols
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 06:43 PM
05-17-2004 06:43 PM
Re: Command to know shared-libraries a program will need?
a5:/pro/bin 104 > ldd /pro/local/bin/wget
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/local/lib/libcrypto.sl.0.9.7 => /usr/local/lib/libcrypto.sl.0.9.7
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/local/lib/libssl.sl.0.9.7 => /usr/local/lib/libssl.sl.0.9.7
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
a5:/pro/bin 105 > chatr /pro/local/bin/wget
/pro/local/bin/wget:
shared executable
shared library dynamic path search:
SHLIB_PATH disabled second
embedded path enabled first /usr/local/lib
shared library list:
dynamic /usr/local/lib/libssl.sl.0.9.7
dynamic /usr/local/lib/libcrypto.sl.0.9.7
dynamic /usr/lib/libc.2
shared library binding:
deferred
global hash table disabled
:
:
a5:/pro/bin 106 > ldd /usr/local/bin/wget
/usr/local/lib/libcrypto.sl => /usr/local/lib/libcrypto.sl
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/local/lib/libssl.sl => /usr/local/lib/libssl.sl
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/local/lib/libiconv.sl => /usr/local/lib/libiconv.sl
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/local/lib/libintl.sl => /usr/local/lib/libintl.sl
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/local/lib/libiconv.sl => /usr/local/lib/libiconv.sl
a5:/pro/bin 107 > chatr /usr/local/bin/wget
/usr/local/bin/wget:
shared executable
shared library dynamic path search:
SHLIB_PATH enabled first
embedded path enabled second /usr/local/lib
shared library list:
static /usr/local/lib/libintl.sl
static /usr/local/lib/libiconv.sl
dynamic /usr/lib/libc.2
dynamic /usr/local/lib/libssl.sl
dynamic /usr/local/lib/libcrypto.sl
shared library binding:
deferred
:
:
One of the big advantages of remembering 'ldd' is that it is also available on many other OS's including Linux. chatr is not
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 09:01 PM
05-17-2004 09:01 PM
Re: Command to know shared-libraries a program will need?
--
ranga