How to connect to foreign DB2 database using Python (Ubuntu)
Posted
by dblips
on Stack Overflow
See other posts from Stack Overflow
or by dblips
Published on 2010-04-30T16:15:52Z
Indexed on
2010/04/30
16:17 UTC
Read the original article
Hit count: 214
sudo easy_install ibm_db-1.0.1-py2.5-linux-i686.egg
only works after sudo apt-get install python-dev
. Some troubles to find that out in the first place ...
Downloaded from IBM site v9.5fp5_linuxia32_dsdriver.tar.gz
and pointing IBM_DB_DIR and IBM_DB_LIB to the clidriver(/lib) dir -- is this needed/correct one? -- libdb2.so(.1) is in there...
Nevertheless:
>>> import ibm_db
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: libdb2.so.1: cannot open shared object file: No such file or directory
Any help is very much appreciated!
© Stack Overflow or respective owner