MySQLdb-0.1.1 install on linux

David Correa linuxtech at redshift.com
Tue Jan 18 23:49:34 EST 2000


Hi,

 I dl. MySQLdb-0.1.1 and im trying to install the module.
When i run "python build.py" i ends with this error:

{sniped stuff was here}

/lib/python1.5/config/Setup
make[2]: Leaving directory `/home2/MySQLdb-0.1.1'
make[1]: Leaving directory `/home2/MySQLdb-0.1.1'
gcc -fPIC -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5
-DHAVE_CONFIG_H  -I/usr/include/mysql -c ./_mysqlmodule.c
./_mysqlmodule.c: In function `_mysql_ConnectionObject_affected_rows':
./_mysqlmodule.c:478: warning: return makes pointer from integer without
a cast
./_mysqlmodule.c: In function `_mysql_ConnectionObject_insert_id':
./_mysqlmodule.c:817: warning: return makes pointer from integer without
a cast
./_mysqlmodule.c: In function `_mysql_ResultObject_num_rows':
./_mysqlmodule.c:928: warning: return makes pointer from integer without
a cast
./_mysqlmodule.c: In function `init_mysql':
./_mysqlmodule.c:1370: warning: assignment makes pointer from integer
without a
cast
gcc -shared  _mysqlmodule.o  -L/usr/lib/mysql -lmysqlclient -o
_mysqlmodule.so
Traceback (innermost last):
  File "build.py", line 14, in ?
    import MySQLdb
  File "MySQLdb.py", line 19, in ?
    from _mysql import *
ImportError: ./_mysqlmodule.so: undefined symbol:
PyLong_FromUnsignedLongLong  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

any help would be appreciated,

dave



More information about the Python-list mailing list