Operating System - HP-UX
1754836 Members
4542 Online
108825 Solutions
New Discussion юеВ

/usr/lib/dld.sl: Can't open shared library:

 
Markus Bonet
Advisor

Re: /usr/lib/dld.sl: Can't open shared library:

Hi!

I had a similar problem.
The 2 '/' won't be a problem, though it looks awful.

Try 'ldd' on that lib.
It will tell you if there are any dependencies to that lib.
In my case there was a right missing on a lib in Oracle->libs. Beware to use the same user as the one with wich the error occurs when running 'ldd'.


Tell me if it helped, Markus

Re: /usr/lib/dld.sl: Can't open shared library:

Sivaji,

Unless you are very careful when compiling/linking code on HPUX, the shared library path search doesn't get enabled (i.e. SHLIB_PATH gets ignored). There's a good reason for this - security - you don't want someone replacing you shared library with a trojan horse!

The good news is you can change this beahviour without having to rebuild the executable, using the chatr command.

First check whether SHLIB_PATH is being used:

chatr

ANd llok near the top of the output - there will be a line whcih tells you whether the SHLIB_PATH searching is enabled or not.

If its not, to change it run:

chatr +s enable

Then set your SHLIB_PATH, export it, and all should be well.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Brian Crabtree
Honored Contributor

Re: /usr/lib/dld.sl: Can't open shared library:

One thing to try is to regenerate your libclntsh file.

You should be able to do this by setting your enviroment, and then going to $ORACLE_HOME/bin. There should be a genclntsh file there. The database (if this is an RDBMS server) will need to be down. You can relink it. After that, make sure that your enviroment is set correctly, with the SHLIB_PATH set, and see if that works.

Brian