mercoledì 1 luglio 2009

Mac OSX python MySQLdb + Eclipse

Once compiled the MySQLdb into the project interpreter configuration add the following folder (notice i've used the relative path, you need to properly configure it):

xxx/MySQL-python-1.2.2/build/lib.macosx-10.3-fat-2.5/

Mac OSX python MySQLdb

Starting from:
http://www.keningle.com/?p=11

Something missing if you are using Fink for linux portings:
Additional steps to perform:

1) install the proper dev libraries:
apt-get install mysql14-shlibs mysql14-dev


2) configure the proper links
sudo mkdir -p /usr/local/mysql
sudo ln -sf /sw/lib/mysql /usr/local/mysql/lib


3) execute the

STEP 3

of http://www.keningle.com/?p=11

4) now you can continue as discussed in the linked blog, so:
sudo python setup.py build
sudo python setup.py install