Menu

Build on Snow Leopard

2009-09-09
2012-09-19
  • David Story

    David Story - 2009-09-09

    Snow Leopard does not support PowerPC any more, so you have to remove it from the python sysconfig with this:

    export ARCHFLAGS='-arch i386 -arch x86_64'
    cd MySQL-python-1.2.3c1
    python setup.py build
    sudo python setup.py install

     
    • Holger Frey

      Holger Frey - 2009-09-11

      I was able to install it even without the export of ARCHFLAGS as described above.
      I did a clean install of Snow Leopard, MySQL 5.1.38 for Mac OS X 10.5 (x86_64) and the XCode-Tool on the Snow Leopard DVD

      The only thing is that setup.py test threw two errors regarding procedures

       
  • Marcel Maré

    Marcel Maré - 2009-09-19

    Does not work for me:

    Compilation seems to go well, but actually using it not:

    > import MySQLdb Traceback (most recent

    > call last): File "<stdin>", line 1,

    > in <module> File

    > "build/bdist.macosx-10.6-i386/egg/MySQLdb/init.py",

    > line 19, in <module> File

    > "build/bdist.macosx-10.6-i386/egg/_mysql.py",

    > line 7, in <module> File

    > "build/bdist.macosx-10.6-i386/egg/_mysql.py",

    > line 6, in bootstrap ImportError:

    > dynamic module does not define init

    > function (init_mysql)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.