• My Errors
  • Login
  • Search
Search again

Error #73718

EnvironmentError: mysql_config not found

When trying to install MySQL-python 1.2.2

User's solution

This works!
+0 Vote Up

Install MySQL 3.23.32 or higher

http://www.mysql.com/downloads/

The setup.py script uses mysql_config to find all compiler and linker options, and should work as is on any POSIX-like platform, so long as mysql_config is in your path.

May 27, 2008

Comments

I'm having the same problem, should i put the MySQL-python-1.2.2 folder in the same folder as mySql? and where is this folder in Ubuntu? plzzz help.

user42197 Dec 06, 2008

You must specify where your mysql installation resides. For me, I had to un-comment the line in file site.cfg to read: mysql_config = /usr/local/mysql/bin/mysql_config whereas by default it searched in: mysql_config = /usr/local/bin/mysql_config

user61181 Mar 09, 2009

simply run under ubuntu: sudo apt-get install libmysqlclient-dev python2.6-dev and then : sudo easy_install MySQL-python

bartosak May 04, 2010