- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Library Load Error when moved to different box
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
02-01-2002 04:46 AM
02-01-2002 04:46 AM
I am working on an application that is called from JAVA via JNI calls. When I test on my own machine, everything works fine, but as soon as I move the shared libs to another box, the application falls over and complains about missing libraries due to the fact that the libraries that I linked with show up in the messages as hard-coded paths. In the AIX environment I could use a -nolibpath flag on the linker command line that would ignore any paths and look for libraries using the LIBPATH environment variable instead.
Any ideas from anyone out there?
Thanks in advance for your help...
Steve Colbert
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2002 05:14 AM
02-01-2002 05:14 AM
Re: Library Load Error when moved to different box
When chatr shows you what the problem is, use chatr to setup the shared library to fix the problem.
e.g.
chatr +s enable myfile.sl
enables the use of SHLIB_PATH (watch out for the +b setting; the order matters).
man chatr (its a snoozer, but you really need to if you're going to be using it).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2002 06:32 AM
02-01-2002 06:32 AM
Re: Library Load Error when moved to different box
Is there any way that I can set this switch within the build of the libraries by using some linker or compiler switch?
Thanks,
Steve Colbert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2002 11:35 AM
02-01-2002 11:35 AM
SolutionThe switches for ld are similar (i.e. man ld -see +b, +s).
You can pass the linker switches from the compiler by using -Wx, arglist
-Wx,arglist Pass the comma-separated argument[s] in arglist to
subprocess x. The -W option specification allows
additional, implementation-specific options to be
recognized by the compiler driver. For example,
-Wl,-a,archive
causes the linker to link with archive libraries
instead of with shared libraries. See ld(1) for
details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2002 11:53 AM
02-01-2002 11:53 AM