PySQLPool on Snow Leopard HOWTO

Ok so here is how to get the awesome module PySQLPool working on Snow Leopard.

  1. Step One

    Get fink there are good instructions on their site

  2. Step Two

    Using fink install the following packages
    dbd-mysql-pm588, mysql, mysql-client, mysql15-dev, mysql15-shlibs
    like this

    sudo fink install dbd-mysql-pm588 mysql mysql-client mysql15-dev mysql15-shlibs

  3. Step Three

    Kick python into 32bit i386 mode, because the libs (from fink in this case, seriously the easiest way to get them) that are prebuilt are are i386 binaries, running the default 64bit interpreter will fail when it calls dlopen(). To do this edit your .profile and add


    You will still need to kick it into 32bit mode manually when using sudo, but this will use 32bit when you call python as you(like when you press R in text mate).

  4. Step Four


    Double Click to Expand ,then using terminal

    cd Downloads/MySQL-python-1.2.3c1
    arch -i386 /usr/bin/python2.6 build
    sudo arch -i386 /usr/bin/python2.6 install

  5. Final Step


    Double Click to Expand, then using terminal

    cd Downloads/PySQLPool-0.3.5

    sudo arch -i386 /usr/bin/python2.6 install

    new terminal window

    Last login: Sat Feb 13 23:47:46 on ttys002

    computer:~ danny$ python

    Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)

    [GCC 4.2.1 (Apple Inc. build 5646)] on darwin

    Type “help”, “copyright”, “credits” or “license” for more information.

    >>> import PySQLPool



Leave a Reply

Your email address will not be published. Required fields are marked *

Sign in with Twitter