![]() |
INICOM, |
Business
Development Technology Consulting Language Translation |
Environment: Cobalt RaQ3, apache 1.3.6 with mod_so, Zope, Oracle8
Installation includes: ZOracleDA and Python 1.5.2
cd /usr/local/src/ tar xzvf <location of the tar.gz file> cd Python-1.5.2 ./configure make
mkdir /usr/lib/python1.5/config cp Makefile /usr/lib/python1.5/config cp Modules/Setup /usr/lib/python1.5/config cp Modules/config.c* /usr/lib/python1.5/config cp Modules/makesetup /usr/lib/python1.5/config cp config.h Include
cd /usr/local/src tar xzvfcd DCOracle-1.3.1b1/src cp Setup-8.1.5 Setup cp Makefile.pre.in-1.5 Makefile.pre.in make -f Makefile.pre.in boot export ORACLE_HOME=
*shared* ORACLE_INCLUDES=$(ORACLE_HOME)/rdbms/demo -I$(ORACLE_HOME)/network/public \ -I$(ORACLE_HOME)/plsql/public -I/usr/local/src/Python-1.5.2/Include ORACLE_L=-lclntsh ORACLE_LIBS=$(ORACLE_HOME)/lib/ $(ORACLE_L) oci_ oci_.c -I$(ORACLE_INCLUDES) -L$(ORACLE_LIBS) -DDCORACLE8 Buffer -I/usr/local/src/Python-1.5.2/Include Buffer.c
export ORACLE_SID=oracle export LD_LIBRARY_PATH=$ORACLE_HOME/lib export PATH=$PATH:$ORACLE_HOME/bin make
file *.sowhich should return:
Buffer.so: ELF 32-bit LSB shared object, Intel 80386, version 1, not stripped oci_.so: ELF 32-bit LSB shared object, Intel 80386, version 1, not stripped
python DCOracle_test.py scott/tiger@oraclewhich should return:
Import succeeded Connect succeededif it was able to connect properly.
cd /usr/local/zope/Zope-2.2.1b1-linux2-x86/ tar xzvf /tmp/ZOracleDA-2.2.0b1-src.tgzwhich installs the ZOracleDA files under lib/python/Products/ZOracleDA
cd lib/python/Products/ZOracleDA/DCOracle cp /usr/local/src/DCOracle-1.3.1b1/src/*.so .