- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Installing our library as primary library
Operating System - HP-UX
1820123
Members
3073
Online
109619
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-10-2005 04:52 PM
тАО05-10-2005 04:52 PM
Installing our library as primary library
Hi All,
We have created a library that supports minimal functionalites...
So need to know how to install that as the primary library, so that a program must take that as the default library...
Can you please help us in the same...
Thanks in advance
Anitha
We have created a library that supports minimal functionalites...
So need to know how to install that as the primary library, so that a program must take that as the default library...
Can you please help us in the same...
Thanks in advance
Anitha
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2005 05:35 PM
тАО05-10-2005 05:35 PM
Re: Installing our library as primary library
Hi Anitha,
Is your library named similar to some standard library, somehing like libc.sl or libc.so?
If this is the case, and you want your application to use your libc.sl instead of standard libc.sl, then you can set environment variable LD_PRELOAD=.
If your library doesn't have a name collision with any other library then put your libraries at the below mentioned locations. This will ensure that any programs linking with libXXX picks your library.
PA 32-bit: /usr/lib/libXXX.sl
PA 64-bit: /usr/lib/pa20-64/libXXX.sl
IA 32-bit: /usr/lib/hpux32/libXXX.so
IA 64-bit: /usr/lib/hpux64/libXXX.so
though as per convention you should create the above files as symlinks to your library(with differnt extension) but that is not mandatory.
-Amit
Is your library named similar to some standard library, somehing like libc.sl or libc.so?
If this is the case, and you want your application to use your libc.sl instead of standard libc.sl, then you can set environment variable LD_PRELOAD=
If your library doesn't have a name collision with any other library then put your libraries at the below mentioned locations. This will ensure that any programs linking with libXXX picks your library.
PA 32-bit: /usr/lib/libXXX.sl
PA 64-bit: /usr/lib/pa20-64/libXXX.sl
IA 32-bit: /usr/lib/hpux32/libXXX.so
IA 64-bit: /usr/lib/hpux64/libXXX.so
though as per convention you should create the above files as symlinks to your library(with differnt extension) but that is not mandatory.
-Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2005 04:43 AM
тАО05-12-2005 04:43 AM
Re: Installing our library as primary library
You can also use the SHLIB_PATH environment variable to set a primary path to seek the libs you want a user program to run.
add in the .profile:
SHLIB_PATH="path_to_the_directory"
You can add several paths separated by : (like for PATH variable).
The path can be relative or absolute.
Hope this helps
add in the .profile:
SHLIB_PATH="path_to_the_directory"
You can add several paths separated by : (like for PATH variable).
The path can be relative or absolute.
Hope this helps
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP