- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SHLIB_PATH and LD_LIB_PATH
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
Forums
Discussions
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
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
08-23-2006 03:13 AM
08-23-2006 03:13 AM
Currently I'm working with an HP-UX D-Class server (D250, HP-UX 11.0, 32 bit, PA-RISC 1.1)
Give me your opinions.
GBR
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2006 03:21 AM
08-23-2006 03:21 AM
SolutionFirst of all, make sure your binary is set to use the SHLIB_PATH. If it is not, it will not even look for SHLIB_PATH !
Run the chatr command against the binary.
# chatr /usr/bin/
SHLIB_PATH disabled second
#
If disabled, use the +s option with chatr to enable SHLIB_PATH lookup
# chatr +s enable /usr/bin/
Once enabled, SHLIB_PATH can be set in so many different ways. Either through .profile (if KSH or Posix) or through a wrapper script.
Sundar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2006 02:58 AM
08-24-2006 02:58 AM
Re: SHLIB_PATH and LD_LIB_PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2006 03:56 AM
08-24-2006 03:56 AM
Re: SHLIB_PATH and LD_LIB_PATH
under HPX you will use SHLIB_PATH the others are for other SVR4 unix (like SCO...)
The default will be /etc/SHLIB_PATH, it works very much the same as /etc/PATH, so depending what is installed it varies.
e.g.
it the beginning of live of this box(RP5450):
(Feb 2002) it was:
/usr/lib:/etc/opt/resmon/lib
since Dec 2004:
/usr/lib:/etc/opt/resmon/lib:/opt/mx/lib:/opt/mx/jre/lib/PA_RISC/native_threads:/opt/wlm/lib:/opt/gnome/lib
(I keep archives of what is on at a given date or before all product installation...)
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2006 03:59 AM
08-24-2006 03:59 AM
Re: SHLIB_PATH and LD_LIB_PATH
I can tell you my understanding but I cannot assure you it is correct (given that I am no programmer :-).
If you dont have a SHLIB_PATH, at runtime, it will look for shared libraries that the binary was compiled with.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2006 02:18 AM
09-05-2006 02:18 AM