How to build/install DCOracle2 on tru64 5.1

Discussion in 'Python' started by the_rev_dharma_roadkill, Jul 27, 2003.

  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
    the_rev_dharma_roadkill, Jul 27, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jose luis fernandez diaz

    Problems installing netforge on Tru64

    jose luis fernandez diaz, Feb 13, 2004, in forum: Java
    Replies:
    0
    Views:
    383
    jose luis fernandez diaz
    Feb 13, 2004
  2. jose luis fernandez diaz

    why this program is wrong on Tru64 OS ?

    jose luis fernandez diaz, Nov 25, 2003, in forum: C++
    Replies:
    2
    Views:
    403
    Stephan Br?nnimann
    Nov 26, 2003
  3. William Rusch

    mod_jk2 compilation issues on tru64 with gcc

    William Rusch, Mar 4, 2004, in forum: C Programming
    Replies:
    2
    Views:
    322
    Old Wolf
    Mar 5, 2004
  4. Skip Montanaro
    Replies:
    0
    Views:
    327
    Skip Montanaro
    Jul 2, 2003
  5. Christian Long
    Replies:
    0
    Views:
    363
    Christian Long
    Aug 8, 2003
Loading...

Share This Page