- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Why does running the binary online work but no...
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
11-13-2003 11:51 PM
11-13-2003 11:51 PM
Server: HP-UX 11.0 OVO 7.1 Oracle 8.1.7.2
I can successfully run an executable online, however when I run the same binary in a script
it fails. The error messages are this:
root# $OMNIHOME/probes/hpux11/nco_p_vpo
+ /opt/netcool/omnibus/probes/hpux11/nco_p_vpo
/usr/lib/dld.sl: Can't find path for shared library: libintl_r.sl
/usr/lib/dld.sl: No such file or directory
./netcool_probe[25]: 8284 Abort(coredump)
In the script I have the path for the library
it is looking for (libintl_r.sl) in the $PATH.
I also have the path for "/usr/lib"
I set an echo in the script and I can see
both path's that mentioned as set in the
$PATH env variable.
Note: That library (libintl_r.sl) is a symbolic link to another file in the same directory.
Any ideas?
10 points to any good answer.
Thank you
Gino
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2003 11:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2003 11:58 PM
11-13-2003 11:58 PM
Re: Why does running the binary online work but not in script?
I tried setting LD_LIBRARY_PATH and it failed
with the same errors as before.
10 points to any good answer.
Thank you
Gino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2003 11:58 PM
11-13-2003 11:58 PM
Re: Why does running the binary online work but not in script?
LD_LIBRARY_PATH=/oracle/products/9.2.0/lib
SHLIB_PATH=/oracle/products/9.2.0/lib
LIBPATH=/oracle/products/9.2.0/lib
The above examples are for Oracle 9.2; I don't know what the correct directories are for your implementation.
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2003 12:01 AM
11-14-2003 12:01 AM
Re: Why does running the binary online work but not in script?
usually, when you run tools as root in a script the shell invokes a subshell. however you need to provide the subshell with the correct variables, the same as your own shell.
check your environment, use #env
then make sure you include those in the top of your script.
the easiest is to source root's .profile
. /root/.profile
peace
Donny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2003 12:03 AM
11-14-2003 12:03 AM
Re: Why does running the binary online work but not in script?
I set SHLIB_PATH to the "missing" directory and now it works.
Thank you for all your help!
Gino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2006 03:43 AM
10-17-2006 03:43 AM
Re: Why does running the binary online work but not in script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2006 11:04 AM
10-17-2006 11:04 AM
Re: Why does running the binary online work but not in script?
set these environment variables in general
locations (like "$HOME/.profile"), see:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1067213
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1067351
If you have a program which needs to have
these things set, it's often safer to use a
script which first sets the variables, and
then runs the program.
Special settings which are good for one program
are often not so good for other programs.