FreeTDS User Guide: A Guide to Installing, Configuring and Running FreeTDS | ||
---|---|---|
Prev | Chapter 5. How to get what works with it working | Next |
Tip: I am not a python user myself, so the information contained in this section is a little rough. Please contact the list for more assistance or (better yet) to improve these instructions.
Grab distutils if you dont have it and install it.
$ tar xvfz distutils-latest.tgz $ cd distutils $ python setup.py install
You can obtain the Python Sybase module here. This example uses version 0.34, the most current at the time of this writing, please adjust accordingly if using a different version.
$ tar xvfz sybase-0.34.tgz $ cd sybase-0.34 $ export SYBASE=/usr/local/freetds $ export CFLAGS="-DHAVE_FREETDS" $ export LD_LIBRARY_PATH=/usr/local/freetds/lib:${LD_LIBRARY_PATH} $ python setup.py installEdit the example.py and fix the bottom stuff, freetds lacks the 110 symbols for version use 100
$ python example.py