Freitag, 1. April 2011

Enabling support for DB2 and Python/Django/SQLAlchemy on Mac OS X Snow Leopard

This is the Python version of a post I made about Ruby a few days ago.

Now that Mac OS X 10.6 is out, it?s time to leave the world of 32 bit computing behind. The pre-installed Python interpreter will run in 64 bit mode by default, so you may need to pay attention when installing some C-based eggs.

Assuming you have DB2 Express-C installed already, the ibm_db Python egg for DB2 can easily be installed by following these simple steps:

This will install the ibm_db C driver, and the ibm_db_dbi Python module that complies to the DB-API 2.0 specification.

You can verify that the installation was successful my running the following:

Now, for the Django adapter, install Django first (if you haven?t done so already):

The Django adapter can then be installed as follows:

Finally, if have installed SQLAlchemy and wish to install the DB2 adapter for it, run:

Please let me know if you encounter any issues, I?d be glad to help you.

Possibly related posts:

  1. Installing the Ruby driver for DB2 on Mac OS X Snow Leopard
  2. IBM releases DB2 adapter for SQLAlchemy
  3. Guide to setting up the IBM Ruby and Python drivers for DB2 on Linux (32 or 64 bit)
  4. The DB2 adapter now supports Django 1.1
  5. Installing Django with PostgreSQL on Ubuntu

If you enjoyed this post, then make sure you subscribe to my Newsletter and/or Feed.

Comments are closed.



Business | Christians | Coupons | Discussions | Gamers
Legal | Politics | Sports | Teens | Webmasters

Source: http://programmingzen.com/2009/09/08/enabling-support-for-db2-and-pythondjangosqlalchemy-on-mac-os-x-snow-leopard/

bamboo lamps wicker lamps bamboo lamp lamps country wicker lamp

Keine Kommentare:

Kommentar veröffentlichen