Re: installing MySQLdb module

2008-05-19 Thread zaphotbretzel
Hi Rafael,

> 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?
> PS I am running XAMPP (http://www.keitr.com/tutorials/xampp) if that
> changes anything

Ok, here my solution to the problem (Mac OS X 10.4, Xampp and MySQLdb)

1) install Xcode from apple (for gcc, need free account for that,
http://developer.apple.com/)
2) get Mac binary tar from MySQL (http://dev.mysql.com/downloads/mysql/
5.0.html#macosx)
3) edit site.cfg (mysql_config = /Applications/xampp/xamppfiles/bin/
mysql_config)
4) copy include dir from MySQL package to /Applications/xampp/
xamppfiles/include/mysql

I bet downloading the same version from MySQL as installed from Xampp
could help.
And yes, you only need the include folder from the MySQL binary
package, do not install it.

Peace,
 Zaphot
--
http://mail.python.org/mailman/listinfo/python-list


Re: installing MySQLdb module

2008-04-20 Thread martin . laloux
search, search, search

http://groups.google.be/group/comp.lang.python/browse_thread/thread/d75a491b8dbc3880/7d4f8eea29e23992?hl=fr&lnk=gst&q=MySQLdb+mac#7d4f8eea29e23992

-- 
http://mail.python.org/mailman/listinfo/python-list


installing MySQLdb module

2008-04-18 Thread rgarcia
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
-- 
http://mail.python.org/mailman/listinfo/python-list