2009
07.21

Had a bit of a snag installing MySQLdb tonight, which is required when installing Django.  I ran into the following error when trying to install the MySQLdb egg under Debian Lenny.

EnvironmentError: mysql_config not found
When trying to install MySQL-python

It was fixed by installing the libmysqlclient15-dev package and the installing the egg again:


sudo apt-get install libmysqlclient15-dev
easy_install MySQL_python-1.2.3c1-py2.5-linux-i686.egg

Package details here:

http://packages.debian.org/search?searchon=contents&keywords=mysql_config&mode=path&suite=stable&arch=any

2 comments so far

Add Your Comment
  1. Thanks a lot! This worked :)

  2. Just wanted to say thank you. I have been struggling with this the whole day and after reading your blog it was all fixed in 1 minute. Cheers.