Links published on October 13, 2007
setup_posix.py patching for RPATH inclusion
If you’re manually installing MySQLdb on Solaris (e.g., on Joyent’s shared hosting or Accelerators), you’ll need this patch.
I’ve prepared a clean version with corrected indentation because the original patch posted to Sourceforge got screwed up. To apply, download MySQLdb and unpack it, then:
cd MySQL-python-1.2.2
wget http://media.b-list.org/files/setup_posix.diff
patch -p0 < setup_posix.diff
python setup.py build
python setup.py install
And you’ll be good to go.