installing mysqldb errors

Fredrik Lundh fredrik at pythonware.com
Thu Oct 14 10:39:25 EDT 2004


"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> 






More information about the Python-list mailing list