Install MySQLdb on Mac OS X (10.3)

Discussion in 'Python' started by TK, Feb 10, 2005.

  1. TK

    TK Guest

    Hi,

    I can't install MySQLdb on Mac OS X (Ver. 10.3) properly. Here's my
    environment:

    1. MySQL-python-1.0.0

    2. Python 2.3

    3. mysql -V

    /usr/local/mysql-standard-4.1.9-apple-darwin7.7.0-powerpc/bin/mysql Ver
    14.7 Distrib 4.1.9, for apple-darwin7.7.0 (po
    werpc)


    4. platform.platform() -> 'Darwin-7.6.0-Power_Macintosh-powerpc-32bit'


    5. python setup.py build
    ....
    running build_ext
    building '_mysql' extension
    creating build/temp.darwin-7.6.0-Power_Macintosh-2.3
    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/mysql/inclu
    de/mysql -I/sw/include/mysql
    -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3
    -c _mysql.c
    -o build/temp.darwin-7.6.0-Power_Macintosh-2.3/_mysql.o
    _mysql.c: In function `_mysql_ConnectionObject_shutdown':
    _mysql.c:1545: error: too few arguments to function `mysql_shutdown'
    error: command 'gcc' failed with exit status 1


    Can anybody enlighten me?

    Thanks for help.

    o-o

    Thomas
    TK, Feb 10, 2005
    #1
    1. Advertising

  2. TK> I can't install MySQLdb on Mac OS X (Ver. 10.3) properly. Here's my
    TK> environment:

    TK> 1. MySQL-python-1.0.0

    ...

    Try a more recent version of mysql-python. I think 1.1.7 is the latest.

    Skip
    Skip Montanaro, Feb 11, 2005
    #2
    1. Advertising

  3. TK

    TK Guest

    Skip Montanaro wrote:
    > TK> I can't install MySQLdb on Mac OS X (Ver. 10.3) properly. Here's my
    > TK> environment:
    >
    > TK> 1. MySQL-python-1.0.0
    >
    > ...
    >
    > Try a more recent version of mysql-python. I think 1.1.7 is the latest.
    >
    > Skip



    Hi Skip,

    > Try a more recent version of mysql-python. I think 1.1.7 is the latest.



    It now works with MySQL-python-1.2.0

    And I have to set:

    export
    PATH=$PATH:/usr/local/mysql-standard-4.1.9-apple-darwin7.7.0-powerpc/bin

    Thanks for the hint.

    o-o

    Thomas
    TK, Feb 11, 2005
    #3
  4. Skip Montanaro <> wrote:
    >Try a more recent version of mysql-python. I think 1.1.7 is the latest.


    1.2.0 -- it appears to be moving extremely rapidly (especially given
    how long it was at 0.9.2 -- although "Waiting for MySQL 4.1 to become
    stable" would be a good explanation for that).

    --
    \S -- -- http://www.chaos.org.uk/~sion/
    ___ | "Frankly I have no feelings towards penguins one way or the other"
    \X/ | -- Arthur C. Clarke
    her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
    Sion Arrowsmith, Feb 11, 2005
    #4

  5. >> Try a more recent version of mysql-python. I think 1.1.7 is the latest.


    TK> It now works with MySQL-python-1.2.0

    Andy's a busy guy... ;-)

    Skip
    Skip Montanaro, Feb 11, 2005
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Skip Montanaro

    Re: Problem with MySQLdb on Mac OS X...

    Skip Montanaro, Jul 12, 2003, in forum: Python
    Replies:
    5
    Views:
    378
    Michael S. Jessop
    Jul 16, 2003
  2. Stephen Roderick

    Failing connection with MySQLdb on Mac OS X

    Stephen Roderick, May 29, 2004, in forum: Python
    Replies:
    0
    Views:
    281
    Stephen Roderick
    May 29, 2004
  3. merman

    Mac OS and MySQLdb

    merman, Jan 27, 2005, in forum: Python
    Replies:
    3
    Views:
    292
    T. Kaufmann
    Jan 28, 2005
  4. geert
    Replies:
    8
    Views:
    382
    Graham Dumpleton
    Mar 19, 2008
  5. PS.OHM
    Replies:
    2
    Views:
    455
    Ned Deily
    Feb 1, 2010
Loading...

Share This Page