[DB-SIG] [[DCOracle] cannot open shared object file: No such file or direc tory

Lane Stevens lane@cycletime.com
Thu, 21 Dec 2000 22:16:20 -0700


Have you set the LD_LIBRARY_PATH in the httpd.conf file so that Apache
exports the proper environment when it launches the cgi script?

Thanks,
Lane.
On Fri, Dec 22, 2000 at 12:40:57PM +0900,  wrote:
> Hi, there.
> 
> i'm totally beat with this stuff. --; please give me a hand.
> 
> i got the right result when i run it on command prompt(bash).
> but as a apache cgi, it just print error messages below.
> 
> here's my source(very simple..)
> --------------------------------------------------------------
> #! /usr/bin/python 
> 
> 
> import sys 
> sys.path.append('/home/oracle/OraHome1/lib') 
> import sys 
> import DCOracle 
> print 'content-type: text/html\n' 
> print 
> print 'DCOracle imported' 
> print sys.path 
> ------------------------------------------------------------ 
> 
> and it's error message(from apache/logs/error_log) :
> ------------------------------------------------------------ 
> Traceback (innermost last): 
>   File "/usr/local/apache/cgi-bin/List22.py", line 7, in ? 
>     import DCOracle 
>   File "DCOracle/__init__.py", line 66, in ? 
>   File "DCOracle/ocidb.py", line 50, in ? 
> ImportError: libclntsh.so.8.0: cannot open shared object file: No such file
> or directory 
> ------------------------------------------------------------ 
> 
> Apache was compiled with --enable-module=so,
> I confirmed ORACLE_BASE, ORACLE_HOME, LD_LIBRARY_PATH, PATH, and PYTHONPATH
> 
> Python version is 1.5.2
> DCOracle version is 1.3.2
> Apache version is 1.3.14
> OS : RH Linux 6.2
> 
> need more info? just let me know.
> 
> Thanks in advance.
> 
> Min.
> 
> _______________________________________________
> DB-SIG maillist  -  DB-SIG@python.org
> http://www.python.org/mailman/listinfo/db-sig

-- 
Lane Stevens
Terrapin Technologies, Inc.
http://www.cycletime.com