DCOracle 2 on Centos 4.x/RHEL4.x x86_64
Download the Oracle Database 10g Client Release
Unpacking
cat ship.client.lnx32.cpio.gz | gunzip | cpio -idmv
Prequisite Libraries
Centos x86_64 packages
yum install gcc.x86_64 cpp.x86_64 glibc-devel.x86_64 glibc-headers.x86_64 glibc-kernheaders.x86_64 openmotif.x86_64 xorg-x11-deprecated-libs.x86_64
Centos i386 packages
yum install glibc-devel.i386 xorg-x11-deprecated-libs.i386 xorg-x11-libs.i386 xorg-x11-Mesa-libGL.i386 expat.i386 fontconfig.i386 freetype.i386 zlib.i386 libgcc.i386
yum install gcc.x86_64 gcc-c++.x86_64 libstdc++.x86_64 cpp.x86_64 glibc-devel.x86_64 glibc-headers.x86_64 glibc-kernheaders.x86_64 gnome-libs.x86_64 compat-db.x86_64 ORBit.x86_64 gtk+.x86_64 imlib.x86_64 libpng10.x86_64 gdk-pixbuf.x86_64 libungif.x86_64 sysstat.x86_64 libaio.x86_64 compat-libstdc++-33.x86_64 compat-glibc.x86_64 yum install xorg-x11-deprecated-libs.i386 xorg-x11-libs.i386 xorg-x11-Mesa-libGL.i386 expat.i386 fontconfig.i386 freetype.i386 zlib.i386 glibc-devel.i386 libgcc.i386 compat-glibc.i386
RHEL4 x86_64 packages
up2date --arch=x86_64 gcc cpp glibc-devel glibc-headers glibc-kernheaders openmotif xorg-x11-deprecated-libs
RHEL4 i386 packages
up2date --arch=i386 glibc-devel xorg-x11-deprecated-libs xorg-x11-libs xorg-x11-Mesa-libGL expat fontconfig freetype zlib libgcc
http://www.zope.org/Members/jetfu/HowToInstallDcOracle2/howto_view
PDO isn't required as far as I know.
Here is a patch that includes all the changes required to the source for DCOracle2, Oracle 10g on x86_64
diff -r -u DCOracle2/setup.py DCOracle2-10g-x86_64/setup.py
--- DCOracle2/setup.py 2001-03-26 12:15:48.000000000 -0700
+++ DCOracle2-10g-x86_64/setup.py 2006-07-26 20:32:57.000000000 -0600
@@ -37,7 +37,7 @@
-INCL_DIR= map(lambda x: os.path.join(OH,x) , ["rdbms/demo","network/public","plsql/public","rdbms/public"])
+INCL_DIR= map(lambda x: os.path.join(OH,x) , ["rdbms/public","plsql/include","precomp/public"])
LIB_DIR = map(lambda x: os.path.join(OH,x) , ["lib"])
CFLAGS = ["-fPIC","-DORACLE8i"]
diff -r -u DCOracle2/src/dco2.c DCOracle2-10g-x86_64/src/dco2.c
--- DCOracle2/src/dco2.c 2004-02-25 16:10:49.000000000 -0700
+++ DCOracle2-10g-x86_64/src/dco2.c 2006-07-26 20:34:40.000000000 -0600
@@ -3390,9 +3390,9 @@
TRACE(T_CALL,("sA","OCIBindDynamic",&self->bind[pos]));
status = OCIBindDynamic(self->bind[pos].bindp,
- self->errhp, (dword *) &self->bind[pos],
+ self->errhp, (dvoid *) &self->bind[pos],
(OCICallbackInBind) dynamicBindIn,
- (dword *) &self->bind[pos],
+ (dvoid *) &self->bind[pos],
(OCICallbackOutBind) dynamicBindOut);
TRACE(T_RETURN,("sRsAA","OCIBindDynamic",status, "OUT",
@@ -3409,7 +3409,7 @@
TRACE(T_CALL,("sA","OCIBindDynamic",&self->bind[pos]));
status = OCIBindDynamic(self->bind[pos].bindp,
- self->errhp, (dword *) &self->bind[pos],
+ self->errhp, (dvoid *) &self->bind[pos],
(OCICallbackInBind) dynamicBindIn, NULL, NULL);
TRACE(T_RETURN,("sRsAA","OCIBindDynamic",status, "LONG",
diff -r -u DCOracle2/src/Makefile.pre.in DCOracle2-10g-x86_64/src/Makefile.pre.in
--- DCOracle2/src/Makefile.pre.in 2000-07-24 12:18:14.000000000 -0600
+++ DCOracle2-10g-x86_64/src/Makefile.pre.in 2006-07-26 20:37:05.000000000 -0600
@@ -118,7 +118,7 @@
OPT= @OPT@
LDFLAGS= @LDFLAGS@
LDLAST= @LDLAST@
-DEFS= @DEFS@
+DEFS=
LIBS= @LIBS@
LIBM= @LIBM@
LIBC= @LIBC@
@@ -153,7 +153,7 @@
LIBDEST= $(SCRIPTDIR)/python$(VERSION)
INCLUDEPY= $(INCLUDEDIR)/python$(VERSION)
EXECINCLUDEPY= $(exec_installdir)/include/python$(VERSION)
-LIBP= $(exec_installdir)/lib/python$(VERSION)
+LIBP= $(exec_installdir)/lib64/python$(VERSION)
DESTSHARED= $(BINLIBDEST)/site-packages
LIBPL= $(LIBP)/config
diff -r -u DCOracle2/src/Setup.in.dco DCOracle2-10g-x86_64/src/Setup.in.dco
--- DCOracle2/src/Setup.in.dco 2001-02-11 11:13:02.000000000 -0700
+++ DCOracle2-10g-x86_64/src/Setup.in.dco 2006-07-26 20:34:16.000000000 -0600
@@ -2,7 +2,7 @@
*shared*
-ORACLE_INCLUDES=$(ORACLE_HOME)/rdbms/demo -I$(ORACLE_HOME)/network/public -I$(ORACLE_HOME)/plsql/public -I$(ORACLE_HOME)/rdbms/public -DCONFIGDEFINES
+ORACLE_INCLUDES=$(ORACLE_HOME)/rdbms/public -I$(ORACLE_HOME)/precomp/public -I$(ORACLE_HOME)/plsql/include -DCONFIGDEFINES
ORACLE_L=-lclntsh -LORAINCLUDES
diff -r -u DCOracle2/src/testora DCOracle2-10g-x86_64/src/testora
--- DCOracle2/src/testora 2003-09-12 10:56:40.000000000 -0600
+++ DCOracle2-10g-x86_64/src/testora 2006-07-26 20:33:14.000000000 -0600
@@ -51,7 +51,7 @@
fi
fi
-if [ ! -f "$ORACLE_HOME/rdbms/demo/xa.h" ]; then
+if [ ! -f "$ORACLE_HOME/rdbms/public/xa.h" ]; then
ORADEF="$ORADEF -DUSEOWNXID"
fi
http://www.zope.org/Members/matt/dco2
http://thread.gmane.org/gmane.comp.web.zope.general/42972