Re: Pro*c and gcc - problem with libclntsh.so.1.0 ???

From: Uwe Schneider <pi_at_richard-schneider.de>
Date: Thu, 18 Nov 1999 20:46:42 +0000
Message-ID: <383465B2.4BB97675_at_richard-schneider.de>


Hi,

>
> Compilation is passing without errors,
> but when I'm trying to execute file (sample1), I see:
>
> ld.so.1: sample1: fatal: libclntsh.so.1.0: open failed: No such file or
> directory
> Killed
>
> ( libclntsh.so.1.0 is present in $ORACLE_HOME/lib directory )

Probably you need to set the environmet variable LD_LIBRARY_PATH to include $ORACLE_HOME/lib. Your program loader (ld.so) has no idea of $ORACLE_HOME. Try "<ldd executable_name>" to make sure that there are no unresolved references to shared libraries.

Uwe

-- 
Uwe Schneider       | Telefon +49 7251 / 82587
Karlsdorfer Str. 31 | Mail    pi_at_richard-schneider.de
DE-76646 Bruchsal   | http://www.richard-schneider.de/uwe
Linux - OS al dente!
Received on Thu Nov 18 1999 - 21:46:42 CET

Original text of this message