- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Where is env variable LPATH defined
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
Discussions
Discussions
Discussions
Forums
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
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
тАО12-29-2010 11:07 AM
тАО12-29-2010 11:07 AM
Where is env variable LPATH defined
Thanks!
- Tags:
- LPATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-29-2010 11:27 AM
тАО12-29-2010 11:27 AM
Re: Where is env variable LPATH defined
Do you have a reason for asking?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-29-2010 11:30 AM
тАО12-29-2010 11:30 AM
Re: Where is env variable LPATH defined
The doc I have found about it does not say that it is unacceptable to use.
What driver sets it?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-29-2010 11:36 AM
тАО12-29-2010 11:36 AM
Re: Where is env variable LPATH defined
If 'LPATH' isn't set the linker uses default paths for library searches otherwise the colon-separated list of paths specified by 'LPATH" is used.
You could set and export LPATH in your profile if you like.
See the manpage for 'ld_ia' or 'ld_pa' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-29-2010 11:49 AM
тАО12-29-2010 11:49 AM
Re: Where is env variable LPATH defined
If you use it, certain driver options won't work.
>does not say that it is unacceptable to use.
If you use it, you're responsible if things don't work. You should use -L instead.
>What driver sets it?
aCC/cc/c89/c99, f90, etc.
>JRF: otherwise the colon-separated list of paths specified by LPATH is used.
Instead, -L should be used for each path.
>You could set and export LPATH in your profile if you like.
Only if you want to upset the drivers. ;-)
LPATH is likely to be specific to each application you build and shouldn't be in your .profile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-29-2010 01:03 PM
тАО12-29-2010 01:03 PM
Re: Where is env variable LPATH defined
It may be the -L is a better choice but it is too late now to change things - the use of LPATH is well embedded in our process.
I still would like to understand a bit more. Does the driver (compiler?) set up this variable during the boot or is it only set up on the fly when using the compiler.
I think the main reason we use it is to link with Oracle for our application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2010 01:31 AM
тАО12-30-2010 01:31 AM
Re: Where is env variable LPATH defined
Only when linking. If you link with -v, the driver will print out the value if it sets it.
>I think the main reason we use it is to link with Oracle for our application.
If you are exporting LPATH, then you should know where you are doing it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2010 07:27 AM
тАО12-30-2010 07:27 AM
Re: Where is env variable LPATH defined
It took a little time to find out where we set it up and I confirmed that we do use it to link with Oracle. It is hard to know everything about what our company is doing! :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2010 07:30 AM
тАО12-30-2010 07:30 AM