FAQ
hi all,

trying to install mysqldb 1.0 and receiving a LOT of errors during the
process.

following the directions of by
export mysqlversion="3.23.58"
export mysqlclient="mysqlclient"
export mysqloptlibs=""
python setup.py build

after the 'python setup.py build' line, i get errors such as

_mysql.c:1375: warning: implicit declaration of function `mysql_insert_id'
_mysql.c: At top level:
_mysql.c:1386: error: syntax error before '*' token
_mysql.c:1388: warning: function declaration isn't a prototype
_mysql.c: In function `_mysql_ConnectionObject_kill':
_mysql.c:1391: error: `args' undeclared (first use in this function)
_mysql.c:1392: error: `self' undeclared (first use in this function)
_mysql.c:1394: warning: implicit declaration of function `mysql_kill'


that's just the beginning of the errors. it goes on like that for
several bash pages and ends with:


_mysql.c:180: warning: `_mysql_server_init__doc__' defined but not used
_mysql.c:191: warning: `_mysql_server_init' defined but not used
_mysql.c:275: warning: `_mysql_server_end__doc__' defined but not used
_mysql.c:281: warning: `_mysql_server_end' defined but not used
error: command 'gcc' failed with exit status 1


so, any suggestions of where i can start looking to fix these errors?

thanks

Search Discussions

  • Fredrik Lundh at Oct 14, 2004 at 2:39 pm

    "matthew collins" wrote:

    trying to install mysqldb 1.0 and receiving a LOT of errors during the process.

    following the directions of by
    export mysqlversion="3.23.58"
    export mysqlclient="mysqlclient"
    export mysqloptlibs=""
    python setup.py build

    after the 'python setup.py build' line, i get errors such as

    _mysql.c:1375: warning: implicit declaration of function `mysql_insert_id'
    _mysql.c: At top level:
    _mysql.c:1386: error: syntax error before '*' token
    _mysql.c:1388: warning: function declaration isn't a prototype
    is that the *first* error you got, or might it be that you got lots of complaints
    about missing files long before that? something like, say:

    _mysql.c:41:19: mysql.h: No such file or directory
    _mysql.c:42:26: mysqld_error.h: No such file or directory
    _mysql.c:43:20: errmsg.h: No such file or directory

    if so, you simply don't have the mysql client development files on your machine, or
    you have them in a location where the setup script cannot find them.

    </F>

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedOct 13, '04 at 10:41p
activeOct 14, '04 at 2:39p
posts2
users2
websitepython.org

2 users in discussion

Fredrik Lundh: 1 post Matthew collins: 1 post

People

Translate

site design / logo © 2022 Grokbase