installing MySQLdb module

rgarcia rgarcia2009 at gmail.com
Fri Apr 18 11:33:21 EDT 2008


I've installed the developer tools package, but when running "python
setup.py build" I get the following error:

python setup.py build
running build
running build_py
copying MySQLdb/release.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb
running build_ext
building '_mysql' extension
gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -
Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -
DNDEBUG -g -O3 -Dversion_info=(1,2,2,'final',0) -D__version__=1.2.2 -I/
Applications/xampp/xamppfiles/include/mysql -I/Library/Frameworks/
Python.framework/Versions/2.5/include/python2.5 -c _mysql.c -o build/
temp.macosx-10.3-fat-2.5/_mysql.o -arch i386 -arch ppc
_mysql.c:35:23:_mysql.c:35:23:  error: my_config.h: No such file or
directoryerror:
my_config.h: No such file or directory
...

I googled around and people say you need the "-dev" package of mysql
in order to have the C headers...where can you download this for mac
os?

Thanks,
Rafael

PS I am running XAMPP (http://www.keitr.com/tutorials/xampp) if that
changes anything



More information about the Python-list mailing list