Menu

MacOSX 10.5/Python 2.5 building problems

Help
2007-04-19
2012-09-19
  • Emanuele Santos

    Emanuele Santos - 2007-04-19

    Hi,
    I'm trying to build mysqldb on a development release of Leopard and I am getting the error shown below. I don't know if it is mysql or mysqldb problem, but if anybody knows how to fix it I would appreciate.
    Thanks,

    -- Emanuele.

    $ python setup.py build
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.5-ppc-2.5
    copying _mysql_exceptions.py -> build/lib.macosx-10.5-ppc-2.5
    creating build/lib.macosx-10.5-ppc-2.5/MySQLdb
    copying MySQLdb/init.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb
    copying MySQLdb/converters.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb
    copying MySQLdb/connections.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb
    copying MySQLdb/cursors.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb
    copying MySQLdb/release.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb
    copying MySQLdb/times.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb
    creating build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
    copying MySQLdb/constants/init.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
    copying MySQLdb/constants/CR.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
    copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
    copying MySQLdb/constants/ER.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
    copying MySQLdb/constants/FLAG.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
    copying MySQLdb/constants/REFRESH.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
    copying MySQLdb/constants/CLIENT.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
    running build_ext
    building '_mysql' extension
    creating build/temp.macosx-10.5-ppc-2.5
    gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes -pipe -Dversion_info=(1,2,2,'final',0) -Dversion=1.2.2 -I/usr/local/mysql/include -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c _mysql.c -o build/temp.macosx-10.5-ppc-2.5/_mysql.o -Os -arch ppc -fno-common
    In file included from /usr/local/mysql/include/mysql.h:43,
    from _mysql.c:40:
    /usr/include/sys/types.h:92: error: duplicate 'unsigned'
    /usr/include/sys/types.h:92: error: two or more data types in declaration specifiers
    error: command 'gcc' failed with exit status 1

     
    • Thomas Creedon

      Thomas Creedon - 2008-06-01

      More tips along the same line < http://forums.mysql.com/read.php?50,175059,179979#msg-179979 >.

       
    • Thomas Creedon

      Thomas Creedon - 2008-06-01

      There is a tip on compiling on Mac OS X Client 10.5 < http://projectmouse.org/2013/InstallingDjangoforLeopardwithMySQLSupport > that may solve this problem for folks.

       

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.