trouble compiling DCOracle
Scherer, Bill
ScherBi at BAM.com
Mon Oct 16 10:49:51 EDT 2000
Try this:
$ locate libclntsh.so.8.0
<some path is ouput here>
$ export LD_LIBRARY_PATH=<path to libclntsh.so.8.0 (not incl
libclntsh.so.8.0))
-Bill
-----Original Message-----
From: Erik Myllymaki [mailto:erik at pacific-shores.com]
Sent: Saturday, October 14, 2000 6:42 PM
To: python-list at python.org
Subject: trouble compiling DCOracle
I'm having some trouble compiling DCOracle on my RedHat 6.1 machine. I am
using the latest DCOracle 1.3.2 and python 1.5.2.
I used the included Setup-8.1.5 file with the addition of one library to the
*ORACLE_Includes* list:
-I$(ORACLE_HOME)/rdbms/public
The output from *make* had a number of errors, but compiled the shared
objects:
gcc -fPIC -I/oradisk01/app/oracle/product/8.1.6/rdbms/demo
-I/oradisk01/app/oracle/product/8.1.6/rdbms/public
-I/oradisk01/app/oracle/product/8.1.6/network/public
-I/oradisk01/app/oracle/product/8.1.6/plsql/public -DDCORACLE8 -g -O2
-I/usr/include/python1.5 -I/usr/include/python1.5 -DHAVE_CONFIG_H -c
./oci_.c
In file included from ./oci_.c:566:
Buffer.h:79: warning: static declaration for `PyImport_Import' follows
non-static
./oci_.c: In function `_wrap_odescr':
./oci_.c:2599: warning: assignment from incompatible pointer type
gcc -shared oci_.o -L/oradisk01/app/oracle/product/8.1.6/lib/
-L/oradisk01/app/oracle/product/8.1.6/rdbms/lib
/oradisk01/app/oracle/product/8.1.6/rdbms/lib/defopt.o -o oci_.so
gcc -fPIC -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5
-DHAVE_CONFIG_H -c ./Buffer.c
In file included from ./Buffer.c:60:
Buffer.h:79: warning: static declaration for `PyImport_Import' follows
non-static
gcc -shared Buffer.o -o Buffer.so
Testing the created shared object files went something like this:
[sweetrig at shamalama src]# python DCOracle_test.py
Traceback (innermost last):
File "DCOracle_test.py", line 1, in ?
import Buffer, oci_, sys
ImportError: libclntsh.so.8.0: cannot open shared object file: No such file
or directory
I have tried a number of setup files that were on the zope list for Oracle
8.1.6 and all have produced errors. Any help appreciated.
--
Erik Myllymaki
erik at pacific-shores.com
--
http://www.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list