Operating System - HP-UX
1745866 Members
4233 Online
108723 Solutions
New Discussion юеВ

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

 
Sivaji
Occasional Contributor

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

I received the following error when trying to execute a Pro*C program on HP-UX 11.0.

/usr/lib/dld.sl: Can't open shared library: /opt/dev6i/lib//libclntsh.sl.1.0
/usr/lib/dld.sl: No such file or directory

This program is compiled on another machine which is also running on HP-UX 11.0.
The difference between these machines is ORACLE_HOME path.
The ORACLE_HOME is /opt/oracle/product/dev6i where I am executing the program.
The ORACLE_HOME is /opt/dev6i where the program is compiled.
12 REPLIES 12
harry d brown jr
Honored Contributor

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

Set SHLIB_PATH and LD_LIBRARY_PATH

live free or die
harry
Live Free or Die
Pete Randall
Outstanding Contributor

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

Welcome back, Harry. Vacation?

Pete

Pete
harry d brown jr
Honored Contributor

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

Pete,

A couple of days off, plus a lot of work finishing up a white paper.

live free or die
harry
Live Free or Die
Sivaji
Occasional Contributor

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

I have set the path as below in both the servers, but still getting same error.
export SHLIB_PATH=/opt/oracle/product/dev6i
export LD_LIBRARY_PATH=/opt/oracle/product/dev6i
H.Merijn Brand (procura
Honored Contributor

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

Wrong:

export SHLIB_PATH=/opt/oracle/product/dev6i/lib
export LD_LIBRARY_PATH=/opt/oracle/product/dev6i/lib

And check if you've got the correct access rights
Enjoy, Have FUN! H.Merijn
Sivaji
Occasional Contributor

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

Same error.
The files have below access rights
rwxr-xr-x 1 oracle dba
Ryan Kogelheide
Frequent Advisor

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

Sorry if it's a dumb remark, but shouldn't

/opt/dev6i/lib//libclntsh.sl.1.0

read:

/opt/dev6i/lib/libclntsh.sl.1.0

?

or does dld do this all the time?
H.Merijn Brand (procura
Honored Contributor

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

Does "/opt/dev6i/lib/" exist? Or did you expect it to be the same as "/opt/oracle/product/dev6i/lib"?

Otherwise try this:

# cd /opt
# ln -s oracle/product/dev6i dev6i

Should help
Enjoy, Have FUN! H.Merijn
H.Merijn Brand (procura
Honored Contributor

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

Ryan, no, that's a problem caused by Oracle's way of linking, and does not harm.

Unix (HP-UX) ignores multiple consequetive slashes

# cd ////////////////////tmp

is identical to

# cd /tmp
Enjoy, Have FUN! H.Merijn