[Zope-DB] Installing MySQLdb on OS X 10.3 (Panther)
Matthew T. Kromer
matt at bane.mi.org
Thu Feb 26 20:55:36 EST 2004
It seems to me that the Python provided with OS X is (was?) b0rked so
you couldnt't complile your own extensions properly. I would suggest
you try building Python 2.3 yourself from source, and then I think
you'll have better luck.
Ed Leafe wrote:
> I know that this is slightly off-topic, but I'm looking to start
> testing Zope on OS X. As part of my test, I need to install the
> MySQLdb module so that I can start working with data-driven web
> pages. I've installed it with Python and Zope on RH Linux without
> problem.
>
> I have Python 2.3 on my Panther machine. When I run 'python
> setup.py install' from the MySQLdb directory, though, I get a series
> of errors. I've pasted the first few lines of what I get when I try
> to install below my sig in the hope that someone might recognize the
> problem.
>
> Also, has anyone else installed MySQLdb on Panther? Any problems
> or tricks I should know about?
>
>
> ___/
> /
> __/
> /
> ____/
> Ed Leafe
> http://leafe.com/
> http://opentech.leafe.com
>
>
>
> Setup Listing:
>
> [ed MySQL-python-0.9.3b1]# python setup.py install
> running install
> running build
> running build_py
> running build_ext
> building '_mysql' extension
> gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
> -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall
> -Wstrict-prototypes -I/usr/include/mysql -I/usr/local/include/mysql
> -I/usr/local/mysql/include -I/usr/local/include
> -I/usr/local/include/python -I/sw/include
> -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/
> python2.3 -c _mysql.c -o
> build/temp.darwin-7.2.0-Power_Macintosh-2.3/_mysql.o
> In file included from pymemcompat.h:10,
> from _mysql.c:31:
> /usr/local/include/python/Python.h:8:22: pyconfig.h: No such file or
> directory
> /usr/local/include/python/Python.h:21:2: #error "limits.h is required
> by std C -- why isn't HAVE_LIMITS_H defined?"
> In file included from /usr/local/include/python/Python.h:28,
> from pymemcompat.h:10,
> from _mysql.c:31:
> /usr/local/include/stdio.h:65:23: sys/types.h: No such file or directory
> /usr/local/include/stdio.h:68:23: sys/cdefs.h: No such file or directory
> /usr/local/include/stdio.h:70:26: machine/ansi.h: No such file or
> directory
> In file included from /usr/local/include/python/Python.h:28,
> from pymemcompat.h:10,
> from _mysql.c:31:
> /usr/local/include/stdio.h:73: error: parse error before "size_t"
> /usr/local/include/stdio.h:81: error: parse error before "fpos_t"
> /usr/local/include/stdio.h:143: error: parse error before "fpos_t"
> /usr/local/include/stdio.h:160: error: parse error before "_offset"
> [ much more of the same follows ]
>
>
> _______________________________________________
> Zope-DB mailing list
> Zope-DB at zope.org
> http://mail.zope.org/mailman/listinfo/zope-db
More information about the Zope-DB
mailing list