Follow me as I struggle with rogue technology, insane programmers, and impossible math questions in a battle to the death.

Sunday, October 18, 2009

Install MySQL-python 1.2.3b on mac OS X when you get the

I tried to install MySQL-python on Mac OS X 10.5 and I got the error:

EnvironmentError: mysql_config not found

To fix this error, you need to specify the location of your mysql_config in the site.cfg file.

I found mine in /usr/local/mysql/bin/

In the MySQL-python installation directory, open the site.cfg.

Add a line that says:

mysql_config = /usr/local/mysq/bin/mysql_config

Then run sudo python setup.py install again and it should install correctly.

Labels: ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home