Re: Can't open shared library: /usr/lib/libc.2 (686 Views)
Reply
Occasional Advisor
Bruno Arruda
Posts: 11
Registered: ‎09-13-2006
Message 1 of 16 (686 Views)

Can't open shared library: /usr/lib/libc.2


Hi People,

i'm installing Oracle Developer no HPUX 11i, when I tried to start OPMN i get this problem, anyone ever seen it ?

06/09/13 18:39:16 [2] libclntsh.sl dlopen failed:
Can't open shared library: /usr/lib/libc.2

thanks
Please use plain text.
Honored Contributor
IT_2007
Posts: 1,069
Registered: ‎07-27-2006
Message 2 of 16 (686 Views)

Re: Can't open shared library: /usr/lib/libc.2

Check your SHLIB path and it may not be in your profile?

env command should you whether you have it or not.
Please use plain text.
Occasional Advisor
Bruno Arruda
Posts: 11
Registered: ‎09-13-2006
Message 3 of 16 (686 Views)

Re: Can't open shared library: /usr/lib/libc.2

SHLIB=/usr/lib

??
Please use plain text.
Honored Contributor
IT_2007
Posts: 1,069
Registered: ‎07-27-2006
Message 4 of 16 (686 Views)

Re: Can't open shared library: /usr/lib/libc.2

Is env command shows SHLIB path or not? didn't understand your question.
Please use plain text.
Occasional Advisor
Bruno Arruda
Posts: 11
Registered: ‎09-13-2006
Message 5 of 16 (686 Views)

Re: Can't open shared library: /usr/lib/libc.2


I Didn't declared the variable SHLIB, only SHLIB_PATH.

I need to declare SHLIB ?

i will send the all error message with print screen on another message..


Tks
Bruno
Please use plain text.
Honored Contributor
IT_2007
Posts: 1,069
Registered: ‎07-27-2006
Message 6 of 16 (686 Views)

Re: Can't open shared library: /usr/lib/libc.2

sorry. SHLIB_PATH not SHLIB. so what is it set to?
Please use plain text.
Occasional Advisor
Bruno Arruda
Posts: 11
Registered: ‎09-13-2006
Message 7 of 16 (686 Views)

Re: Can't open shared library: /usr/lib/libc.2

This is the ALL error message, please help me.

root@rjux0045:/tools/oracle/dev10g/opmn/bin > ./opmnctl startall
opmnctl: starting opmn and all managed processes...
opmnctl: opmn start failed

root@rjux0045:/tools/oracle/dev10g/opmn/logs > more ons.log
06/09/13 19:47:16 [2] libclntsh.sl dlopen failed:
Can't open shared library: /usr/lib/libc.2
06/09/13 19:47:16 [1] SSL disabled
06/09/13 19:47:34 [2] libclntsh.sl dlopen failed:
Can't open shared library: /usr/lib/libc.2
06/09/13 19:47:34 [1] SSL disabled
06/09/13 19:55:25 [2] libclntsh.sl dlopen failed:
Can't open shared library: /usr/lib/libc.2
06/09/13 19:55:25 [1] SSL disabled
06/09/13 20:04:06 [2] libclntsh.sl dlopen failed:
Can't open shared library: /usr/lib/libc.2
06/09/13 20:04:06 [1] SSL disabled
06/09/13 20:04:43 [2] libclntsh.sl dlopen failed:
Can't open shared library: /usr/lib/libc.2
06/09/13 20:04:43 [1] SSL disabled
Please use plain text.
Occasional Advisor
Bruno Arruda
Posts: 11
Registered: ‎09-13-2006
Message 8 of 16 (686 Views)

Re: Can't open shared library: /usr/lib/libc.2

the SHLIB_PATH is OK.
Please use plain text.
Honored Contributor
Yogeeraj_1
Posts: 4,613
Registered: ‎11-25-2001
Message 9 of 16 (686 Views)

Re: Can't open shared library: /usr/lib/libc.2

hi,

you did not mention the version of Oracle Developer that you are trying to install.

According to the Docs (Oracle9i Application Server Release Notes), the environment variable:

SHLIB_PATH
should point to the directory where
libclntsh.sl

is found.

Normally, it should be $ORACLE_HOME/lib in the appropriate environment variable for your system.

please check!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Please use plain text.
Occasional Advisor
Bruno Arruda
Posts: 11
Registered: ‎09-13-2006
Message 10 of 16 (686 Views)

Re: Can't open shared library: /usr/lib/libc.2

hi yogeeraj,

thanks for your help.

The version of Developer is 10g and the oracle is 9.2.0.6.

But when I start to install the Developer, I must set this variables:

export ORACLE_HOME=/tools/oracle/dev10g
export ORACLE_SID=
export SHLIB_PATH=$ORACLE_HOME/lib
export ORACLE_PATH=$ORACLE_HOME/bin
export PATH=$ORACLE_PATH:$PATH
export DISPLAY=172.20.1.197:0.0
export TERM=vt100

root@rjux0045:/ > find / -name libclntsh.sl -print
/tools/oracle/9.2.0.6/lib/libclntsh.sl
/tools/oracle/9.2.0.6/lib32/libclntsh.sl
/tools/oracle/dev10g/lib/libclntsh.sl
/tools/oracle/dev10g/lib32/libclntsh.sl

root@rjux0045:/ > ls -l /usr/lib/libc.2
-rwxrwxrwx 2 bin bin 1822720 May 6 2005 /usr/lib/libc.2

Do you have another tip?

tks
Bruno

Please use plain text.
Honored Contributor
Peter Godron
Posts: 4,470
Registered: ‎02-13-2002
Message 11 of 16 (686 Views)

Re: Can't open shared library: /usr/lib/libc.2

Bruno,
chnage
export SHLIB_PATH=$ORACLE_HOME/lib
to
export SHLIB_PATH=$ORACLE_HOME/lib:/usr/lib

Please update with feedback.
Please use plain text.
Occasional Advisor
Bruno Arruda
Posts: 11
Registered: ‎09-13-2006
Message 12 of 16 (686 Views)

Re: Can't open shared library: /usr/lib/libc.2

the correct version is Oracle Forms and Reports services 10g (9.0.4.0)

i tried to install again with this variables

export ORACLE_HOME=/tools/oracle/dev10g
export ORACLE_SID=
export SHLIB_PATH=$ORACLE_HOME/lib32:/usr/lib
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export ORACLE_PATH=$ORACLE_HOME/bin
export PATH=$ORACLE_PATH:$PATH
export DISPLAY=172.20.1.197:0.0
export TERM=vt100

but failed again...

:(

Please use plain text.
Frequent Advisor
MAUCCI_2
Posts: 48
Registered: ‎06-25-2001
Message 13 of 16 (686 Views)

Re: Can't open shared library: /usr/lib/libc.2

Hmm, very strange to have 777 on libc.2
What other strange things do you have on your system?

What is your system? (uname -a)
What version of libc.2 do you have? (what /usr/lib/libc.2)
Can you try use tusc in order to see what's going wrong with opening this lib?

-Cyrille
Please use plain text.
Occasional Advisor
Bruno Arruda
Posts: 11
Registered: ‎09-13-2006
Message 14 of 16 (686 Views)

Re: Can't open shared library: /usr/lib/libc.2

do you know where i can download the tusc?

thanks
Please use plain text.
Frequent Advisor
MAUCCI_2
Posts: 48
Registered: ‎06-25-2001
Message 15 of 16 (686 Views)

Re: Can't open shared library: /usr/lib/libc.2

Since this is open source, you can get it from Porting And Archiving Center for HPUX
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-7.8/

++Cyrille
Please use plain text.
Occasional Visitor
Daniel Godoy_1
Posts: 1
Registered: ‎09-21-2006
Message 16 of 16 (686 Views)

Re: Can't open shared library: /usr/lib/libc.2

Hi, the problem is with an OS Patch, looking through metalink you can found the following Note: 388345.1, it says:

1. Deinstall the patch PHSS_33037
2. Install patch PHSS_33035
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation