Installing Modules

drmental at my-deja.com drmental at my-deja.com
Tue Sep 14 18:53:22 EDT 1999


Hi all Pythonist.

I'm a newbie to python and I'm having trouble to install the
MySQLmodule-1.4 module.

This is my system:
Red Hat 6.0
MySQL 3.22
Python 1.5.2

This is what I have done:
* uncompress the python source.
* uncompress the module.
* 'cp Setup.in Setup'.
* edit the Setup file according to modules instruction
  (MySQL MySQLmodule.c -L/usr/lib/mysql/ -lmysqlclient
I/usr/include/mysql) **paths according to my system
* in the pythons toplevel './configure'
* 'make'

As far as i can tell that is all the instructions tell me.
Now when i run the make command i get the error:

gcc  -I/usr/include/mysql -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H -c
./MySQLmodule.c
./MySQLmodule.c: In function `pythonify_row':
./MySQLmodule.c:238: warning: assignment from incompatible pointer type
./MySQLmodule.c: In function `pythonify_res_fields':
./MySQLmodule.c:384: invalid lvalue in unary `&'
./MySQLmodule.c: In function `STH_fetchdict':
./MySQLmodule.c:1125: invalid lvalue in unary `&'
./MySQLmodule.c:1147: invalid lvalue in unary `&'
make[1]: *** [MySQLmodule.o] Error 1
make[1]: Leaving directory `/root/Python-1.5.2/Modules'
make: *** [Modules] Error
2

Please can someone tell me what I'm doing wrong.

Thanks in advance.

Mats Nordgren
mats at NOSPAM.launchnet.com (please remove NOSPAM. in replies.)


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




More information about the Python-list mailing list