[Zope] MySQL and Python and Mac OS X??

Andy Dustman andy@dustman.net
06 Nov 2001 18:22:58 -0500


The CVS version of MySQLdb fixes this:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mysql-python/MySQLdb/setup.py.diff?r1=1.14&r2=1.16
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mysql-python/MySQLdb/setup.py.diff?r1=1.14&r2=1.16&diff_format=u

It is some weird Mac OS X-ism. Apply this patch (second link) or make
the indicated changes (first link) and you should be ok.

On Fri, 2001-11-02 at 09:57, Chris Muldrow wrote:
> I was trying to build the MySQL adapter so I could use my Mac OS X Zope with
> MySQL, but I get this when I run python setup.py install:
> 
> running install
> running build
> running build_py
> not copying CompatMysqldb.py (output up-to-date)
> not copying _mysql_exceptions.py (output up-to-date)
> not copying MySQLdb/__init__.py (output up-to-date)
> not copying MySQLdb/converters.py (output up-to-date)
> not copying MySQLdb/connections.py (output up-to-date)
> not copying MySQLdb/cursors.py (output up-to-date)
> not copying MySQLdb/sets.py (output up-to-date)
> not copying MySQLdb/times.py (output up-to-date)
> not copying MySQLdb/constants/__init__.py (output up-to-date)
> not copying MySQLdb/constants/CR.py (output up-to-date)
> not copying MySQLdb/constants/FIELD_TYPE.py (output up-to-date)
> not copying MySQLdb/constants/ER.py (output up-to-date)
> not copying MySQLdb/constants/FLAG.py (output up-to-date)
> not copying MySQLdb/constants/REFRESH.py (output up-to-date)
> not copying MySQLdb/constants/CLIENT.py (output up-to-date)
> running build_ext
> building '_mysql' extension
> skipping _mysql.c (build/temp.darwin-1.4-Power Macintosh-2.1/_mysql.o
> up-to-date)
> cc -bundle -undefined suppress build/temp.darwin-1.4-Power
> Macintosh-2.1/_mysql.o -L/usr/local/lib/mysql -lmysqlclient -lz -o
> build/lib.darwin-1.4-Power Macintosh-2.1/_mysql.so
> /usr/bin/ld: -undefined error must be used when -twolevel_namespace is in
> effect
> error: command 'cc' failed with exit status 1
> 
> 
> 
> Any ideas how to fix it?
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
-- 
Andy Dustman         PGP: 0x930B8AB6
    @       .net     http://dustman.net/andy
You can have my keys when you pry them from my dead, cold neurons.