Skip to content
Advertisement

MySQLdb install error – _mysql.c:44:23: error: my_config.h: No such file or directory

I’m trying to install MySQLdb extension, but I get this error any idea what may be the cause? Could be something with permissions? I’m using Mac OX Lion….

This is a part of the error a got. Django is installed fine, but I need to install this extension. Thanks for any help.

JavaScript

Advertisement

Answer

usually when you get these kinds of errors, you are missing development packages – you need to install the header files as they don’t come with mysqldb.

i’ve not done this on apple personally, but here’s a link to their article on how to go about such a thing.

http://support.apple.com/kb/ht4006

after you’ve installed the source, mysqldb should be able to compile and install without issues.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement