[Zope-dev] anyone have a ZOracleDA Setup-8.1.6-linux-intel

Matthew T. Kromer matt@digicool.com
Thu, 01 Jun 2000 16:19:12 -0400


on 6/1/00 2:28 PM, Shawn Murphy at smurp@emergence.com wrote:

> 
> In other words...I am trying to get the ZOracleDA compiled for RedHat
> Linux for Zope 2.1.6, Oracle 8.1.6 and ZOracleDA-2.2.0b1, but am having
> problems creating a Setup file which does the job.
> 
> It seems like others have had some success in this area.  Anybody able to
> share some tips or better yet, the 'Setup-8.1.6-linux-intel' that they
> created.
> 
> On a slightly different note, is the ZOracleDA source in a public CVS
> somewhere?  Maybe the solution can be found there or I would be happy to
> place it there once developed.
> 
> I can't find the ZOracleDA in
> http://classic.zope.org/cgi-bin/cvsweb.cgi/Zope2/

Here's a cut-and-paste from DCOracle 1.3.1b1:  Formatting has goobered it
(sadly) but you can get the gist pretty easily.


*shared*

# Setup file for Oracle 8.1.5 (Oracle 8i)
#
# Unfortunately, the libraries needed to link Oracle change from revision
# to revision.  
#
# Oracle provides a make file for building "demo" programs in
# $ORACLE_HOME/rdbms/demo/demo_rdbms.mk.  I have been unable to
# use this make file to build Python extensions. Adapting it is
# not adequate, because it may change for new Oracle revs.
# My approach is to use demo_rdbms.mk to build one of the
# demo programs, look at the libraries linked, and start from there. :-(
#

ORACLE_INCLUDES=$(ORACLE_HOME)/rdbms/demo -I$(ORACLE_HOME)/network/public
-I$(ORACLE_HOME)/plsql/public

ORACLE_L=-lclntsh

ORACLE_LIBS=$(ORACLE_HOME)/lib/ $(ORACLE_L)

oci_ oci_.c -I$(ORACLE_INCLUDES) -L$(ORACLE_LIBS) -DDCORACLE8

Buffer Buffer.c