469,889 Members | 1,257 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,889 developers. It's quick & easy.

How to build/install DCOracle2 on tru64 5.1

I've have some fun getting DCOracle2 (python-to-oracle interface)
going on HP/Compaq Tru64 with Oracle8i Release 3 (oracle 8.1.7). I'd
like to share an answer/bug-fix with you:

After un-tarring the source...
1) edit setup.py. Change the lines:
CFLAGS = ["-fPIC","-DORACLE8i"]
LFLAGS = ["-Wl,-rpath,%s" % string.join(LIB_DIR,",")]

LIBS=['clntsh']

TO READ INSTEAD:
CFLAGS = ["-DORACLE8i"]
LFLAGS = None

LIBS=['clntsh','ocijdbc8']

2) Now run python setup.py build
3) Now, as root (or whatever), run python setup.py install
4) When you test, DO NOT sit in any directory that contains a
"DCOracle2" sub-directory! Get away from the build area and its
parent!

This works for me. The usual technique produces a broken dco2.so,
which cannot resolve "OCILobIsTemporary", due to some brain-damage in
the Oracle8i libraries. The trick of using ocijdbc8 came from
somebody else on the web whose name I now cannot recall, I apologize
to whoever is was.

Best of Luck Tru64 people!
Doug
Jul 18 '05 #1
0 1214

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Skip Montanaro | last post: by
2 posts views Thread by Timo Virkkala | last post: by
3 posts views Thread by Ron Reidy | last post: by
reply views Thread by Keana | last post: by
1 post views Thread by Joe Wong | last post: by
2 posts views Thread by jose luis fernandez diaz | last post: by
3 posts views Thread by Nikola Milutinovic | last post: by
2 posts views Thread by Chris | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.