Operating System - HP-UX
1748171 Members
4282 Online
108758 Solutions
New Discussion юеВ

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

 
Engo Armand-Blaise
Frequent Advisor

libclntsh.sl.8.0 not found in the library

I' running Oracle 8i with precompiler PRO*COBL 1.8. on HP-UNIX B.11.00 with 32 bits. The problem is I can't compile my program by using "make -f" command. The Message Error is :

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: 10915 Abort(coredump)
*** Error exit code 134

Stop.
==============================================

What can I do if this file is not found?

I have only "libclntsh.sl" and the .profile file is setting to SHLIB_PATH.

Thank for your prompt help.

26 REPLIES 26
Christian Gebhardt
Honored Contributor

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

Hi

In our installations libclntsh.sl is a link to libclntsh.sl.8.0

I think you have to move libclntsh.sl to libclntsh.sl.8.0 and then link libclntsh.sl to libclntsh.sl.8.0

Chris
Engo Armand-Blaise
Frequent Advisor

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

Sorry but we have the same link:
lrwxrwxr-x 1 101 101 16 Feb 18 12:58 libclntsh.sl -> libcln
tsh.sl.8.0
-rw-r--r-- 1 101 101 9028 Mar 4 09:25 libclntst8.a
==============================================

My actual question is how to set up the LD_SHLIBRARY_PATH and SHLIB_PATH? it seems really it does not find the right PATH.
T G Manikandan
Honored Contributor

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

you can generate that file

First stop all Oracle processes including listener.

$cd $ORACLE_HOME/bin
$genclntsh(32 bit Oracle)
or
the eqv. for 64 bit
After generating relink using
$relink all

Revert
Engo Armand-Blaise
Frequent Advisor

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

Aftger running this script as Oracle user, this is the result:
cyb_hpux [ /cyborg/app/oracle/product/817/bin ] $ genclntsh
cat: Cannot open /tmp/clntst8.13627/*.nm: No such file or directory
Extracting from ...
sort: Cannot open /tmp/clntst8.13627/*.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
======================================
So, what is about the path?
Christian Gebhardt
Honored Contributor

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

Hi

Set the SHLIB_PATH in the .profile of the User.
Be sure you have set the ORACLE_HOME before:

SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
export SHLIB_PATH


Chris
T G Manikandan
Honored Contributor

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

Did you do any upgrade of Oracle or OS patches?
Engo Armand-Blaise
Frequent Advisor

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

This is what I have but it is still the same message error :
# Set Oracle Environment

ORACLE_HOME=/cyborg/app/oracle/product/817 ; export ORACLE_HOME
ORACLE_SID=dev3 ; export ORACLE_SID
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:$ORACLE_HOME:$SHLIB_PATH ; export PATH
PATH=$PATH:$LD_LIBRARY_PATH:$ORACLE_HOME/bin ; export PATH
PATH=$PATH:$ORACLE_HOME/precomp/demo/procob ; export PATH
Engo Armand-Blaise
Frequent Advisor

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

I'm not doing any upgrade on Oracle. What I'm doing is to create a Relational Environment from the Indexed One by using Oracle 8i. This is running well with Oracle 8.0.6 but not 8i.

Please assist me.
T G Manikandan
Honored Contributor

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

you are getting error with these dir,(clntst8.13627).

Is this dir available under $ORACLE_HOME/lib.
If this dir is available there then try running

$cd $ORACLE_HOME/lib
$$ORACLE_HOME/bin/genclntsh

My previous query was
Did you do any upgrade recently.

Revert