Comment 4 for bug 341943

Revision history for this message
mristroph (mristroph) wrote :

At the time of this writing, the Ubuntu package is still out of date, so it's still broken. To work around this, install MySQLdb using easy_install.

Here is what I did:

apt-get remove python-mysqldb # Remove outdated version
apt-get install python-setuptools # This package has easy_install, the tool you'll use to reinstall MySQLdb
### This might fail if you don't have some essentials. See below.
easy_install MySQL-python

### If you got an error about missing mysql_config, you'll need to install that. It's in libmysqlclient-dev
sudo aptitude search libmysqlclient # See what version of you are using. Assuming its 15, then do...
apt-get install libmysqlclient15-dev # Building MySQLdb will require mysql_config, in this package.
apt-get install python-dev # It'll also need Python.h and some other stuff in here
### If you have a really fresh system, you'll need all the regular build tools. Just for kicks, load up on these:
apt-get install binutils-doc gcc-multilib make manpages-dev autoconf automake1.9 libtool
# Now, this BETTER work
easy_install MySQL-python