Operating System - HP-UX
1748163 Members
3685 Online
108758 Solutions
New Discussion юеВ

Re: libclntsh.sl.8.0 not found in the library

 
Ian Lochray
Respected Contributor

Re: libclntsh.sl.8.0 not found in the library

Once genclntsh has generated libclntsh.sl.8.0 it calls genclntst to generate libclntst.a. I believe that the error messages being generated from genclntsh are, in fact, coming from genclntst. genclntsh should have created libclntsh.sl.8.0 and symbolically linked libclntsh.sl to it. Is this the case? If so, retry the procob18 command.
BTW, the directory is the error is created by genclntst. I think that the error refers to the fact that there are no files in the directory rather than the directory not existing and it is due to the fact that there is a bug in genclntst.
Indira Aramandla
Honored Contributor

Re: libclntsh.sl.8.0 not found in the library

You can try recreating the the client shared library and
relinking all the products by running :

gensyslib
genclntsh
cd $ORACLE_HOME/network/lib
make -f ins_network.mk install
cd $ORACLE_HOME/sqlplus/lib
make -f ins_sqlplus.mk install
cd $ORACLE_HOME/rdbms/lib
make -f ins_rdbms.mk install

Never give up, Keep Trying
Engo Armand-Blaise
Frequent Advisor

Re: libclntsh.sl.8.0 not found in the library

This is what I've found when running "gensyslib":

Cannot locate /lib/lib-L/opt/sna/lib.a nor /usr/lib/lib-L/opt/sna/lib.a.
Cannot install LU62 Protocol Adapter driver.
Cannot locate /opt/sna/lib/libappc.sl.
Cannot install LU62 Protocol Adapter driver.
Cannot locate /opt/sna/lib/libcsv.sl.
Cannot install LU62 Protocol Adapter driver.
Cannot locate /opt/sna/lib/libmgr.sl.
Cannot install LU62 Protocol Adapter driver.
========================================
Engo Armand-Blaise
Frequent Advisor

Re: libclntsh.sl.8.0 not found in the library

Is there anybody to help me for the LD_LIBRARY_PATH and SHLIBPATH variables to set up?
cyb_hpux [ /cyborg/app/oracle/product/817 ] $ echo $LD_LIBRARY_PATH
/cyborg/app/oracle/product/817/lib:/cyborg/app/oracle/product/817/lib:
cyb_hpux [ /cyborg/app/oracle/product/817 ] $ echo $SHLIB_PATH
/cyborg/app/oracle/product/817/lib:/opt/cobol/cobdir/coblib

This is my .profile file:

ORACLE_HOME=/cyborg/app/oracle/product/817 ; export ORACLE_HOME
TERM=vt220 ; export TERM
TNS_ADMIN=/etc ; export TNS_ADMIN
PATH=$PATH:$ORACLE_HOME/bin ; export PATH

# Set Cobol Environment
LPATH=/usr/lib:/opt/cobol/cobdir ; export LPATH
TMPDIR=/tmp ; export TMPDIR
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH ; export LD_LIBRARY_PATH
SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH ; export SHLIB_PATH
PATH=$PATH:/usr/bin:/usr/ccs/bin:/opt/cobol ; export PATH
PATH=$PATH:/opt/cobol/bin ; export PATH
PATH=$PATH:$LPATH:$SHLIB_PATH ; export PATH

============================================

Please I need you help.

cyb_hpux [ /cyborg/app/oracle/product/817 ] $ l -ltr $ORACLE_HOME/bin/oracle
-rwsr-s--x 1 oracle dba 34012064 Feb 18 14:08
/cyborg/app/oracle/pr
oduct/817/bin/oracle
cyb_hpux [ /cyborg/app/oracle/product/817 ] $ l -ltr lib/libclntsh.sl
lrwxrwxr-x 1 oracle dba 16 Feb 18 12:58 lib/libclntsh.sl ->
li
bclntsh.sl.8.0

==============================================

This the result after running a shell script "jcmprdb 0"
SCRIPT TO COMPILE rdbpgm0
*************************
jcmprdb 0 PROCESSING ...
procob18 ireclen=132 oreclen=132 select_error=no litdelim=quote
mode=ans
i iname=rdbpgm0.pco oname=rdbpgm0.cbl
/usr/lib/dld.sl: Can't find path for shared library: libclntsh.sl.8.0
/usr/lib/dld.sl: No such file or directory
sh: 6014 Abort(coredump)
*** Error exit code 134
Stop.
jcmprdb 0 COMPLETED
Press to continue . . .
JCMPRDB COMPLETED - rdbpgm0
***************************



Roberto Martinez_6
Frequent Advisor

Re: libclntsh.sl.8.0 not found in the library

Hi,

Change dir to $ORACLE_HOME/lib

try with:

ldd -s libclntsh.sl.8.0

to see references to other libraries within libclntsh.sl.8.0. It should find all the libraries, like in my installation:

find library=/usr/lib/libcl.2; required by libclntsh.sl.8.0
/usr/lib/libcl.2 => /usr/lib/libcl.2

find library=/usr/lib/libisamstub.1; required by /usr/lib/libcl.2
/usr/lib/libisamstub.1 => /usr/lib/libisamstub.1

find library=/usr/lib/libdld.2; required by /usr/lib/libcl.2
/usr/lib/libdld.2 => /usr/lib/libdld.2

find library=/usr/lib/libc.2; required by implicit load
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/usr/lib/libdld.2; required by /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2

find library=/usr/lib/libc.2; required by libclntsh.sl.8.0
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/usr/lib/libm.2; required by libclntsh.sl.8.0
/usr/lib/libm.2 => /usr/lib/libm.2

find library=/usr/lib/libdld.2; required by libclntsh.sl.8.0
/usr/lib/libdld.2 => /usr/lib/libdld.2

find library=/usr/lib/libnss_dns.1; required by libclntsh.sl.8.0
/usr/lib/libnss_dns.1 => /usr/lib/libnss_dns.1

find library=/usr/lib/libdld.2; required by /usr/lib/libnss_dns.1
search path=/usr/lib (RPATH)
trying path=/usr/lib/libdld.2
/usr/lib/libdld.2 => /usr/lib/libdld.2

find library=/usr/lib/libc.2; required by /usr/lib/libnss_dns.1
search path=/usr/lib (RPATH)
trying path=/usr/lib/libc.2
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/usr/lib/libpthread.1; required by libclntsh.sl.8.0
/usr/lib/libpthread.1 => /usr/lib/libpthread.1

find library=/usr/lib/librt.2; required by libclntsh.sl.8.0
/usr/lib/librt.2 => /usr/lib/librt.2

find library=/logiciel/oracle/oracle_817/lib/libwtc8.sl; required by libclntsh.sl.8.0
/logiciel/oracle/oracle_817/lib/libwtc8.sl => /logiciel/oracle/oracle_817/lib/libwtc8.sl

find library=/usr/lib/libc.2; required by /logiciel/oracle/oracle_817/lib/libwtc8.sl
/usr/lib/libc.2 => /usr/lib/libc.2

If there's a "not found" or something like that, check the offending library, try to find it or post the result.
It wasn't me
Yogeeraj_1
Honored Contributor

Re: libclntsh.sl.8.0 not found in the library

 
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Engo Armand-Blaise
Frequent Advisor

Re: libclntsh.sl.8.0 not found in the library

Thanks for your help but actually, the main problem consists in how to create this "libclntsh.sl.8.0" file wihtout error; when I ran "genclntsh", this is the output :

cyb_hpux [ /cyborg/app/oracle/product/817/bin ] $ genclntsh
cat: Cannot open /tmp/clntst8.7515/*.nm: No such file or directory
Extracting from ...
sort: Cannot open /tmp/clntst8.7515/*.objs
usage: ar [-][mrxtdpq][ACTabcFfilsuvzS] [posname] archive files ...
ar: creating /cyborg/app/oracle/product/817/lib/libclntst8.a
Created /cyborg/app/oracle/product/817/lib/libclntst8.a
=============================================
However, this command is not successful:
cyb_hpux [ /cyborg/app/oracle/product/817/lib ] $ ldd -s libclntsh.sl.8.0
ldd: cannot open "libclntsh.sl.8.0".
ldd: No such file or directory
=============================================
cyb_hpux [ / ] $ find library=/usr/lib/libcl.2; required by libclntsh.sl.8.0
find: cannot stat library=/usr/lib/libcl.2
ksh: required: not found
============================================



Ian Lochray
Respected Contributor

Re: libclntsh.sl.8.0 not found in the library

It seems that genclntsh has not created libclntsh.sl.8.0 which it should have done before it generated the errors you described. Can you try running a debug version of genclntsh and post the output so we can see where it is going wrong. To do this:
log on as oracle
cd $ORACLE_HOME/bin
cp genclntch mygenclntsh
edit mygenclntsh and insert a new line on line 2 with the contents "set -x" (without the quotes)
mygenclntsh
Engo Armand-Blaise
Frequent Advisor

Re: libclntsh.sl.8.0 not found in the library

Attached is the file "genclntsh" created after running "genclntsh" with trace.

Best regards,
Engo.
Ian Lochray
Respected Contributor

Re: libclntsh.sl.8.0 not found in the library

The reason that libclntsh.sl.8.0 was not generated and we saw no error is that all errors from the link command that generates it are redirected to a file. You should have a newly created file called /cyborg/app/oracle/product/817/lib/clntsh.map which contains the output of the link command. Can you please post that.