Im having problems trying to install the library (RH Linux btw, Python 2.4.1, Mysql 3.23 with devel). I tried both versions of the library, 1.2.0 and 1.2.1rc3 (same problems).
When I first executed: python setup.py install I got the problems about the quotes (') in the -I path, wich I fixed with:
setup.py L93:
extra_compile_args = config("cflags")
> extra_compile_args = [ i.replace("'","") for i in extra_compile_args ]
After fixing that, the compiling starts, but fails in a different way: [xxx@xxx MySQL-python-1.2.1c3]$ python setup.py build
running build
running build_py
running build_ext
building '_mysql' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python2.4 -c _mysql.c -o build/temp.linux-i686-2.4/_mysql.o -I/usr/include/mysql
_mysql.c: In function _mysql_server_init':
_mysql.c:187: warning: unused variableitem'
_mysql.c:186: warning: unused variable groupc'
_mysql.c:186: warning: unused variablei'
_mysql.c:186: warning: unused variable cmd_argc'
_mysql.c:185: warning: unused variables'
_mysql.c:262: warning: label finish' defined but not used
_mysql.c: In function_mysql_ConnectionObject_Initialize':
_mysql.c:517: MYSQL_OPT_LOCAL_INFILE' undeclared (first use in this function)
_mysql.c:517: (Each undeclared identifier is reported only once
_mysql.c:517: for each function it appears in.)
_mysql.c: At top level:
_mysql.c:172: warning:_mysql_server_initdoc' defined but not used
_mysql.c:267: warning: `_mysql_server_enddoc' defined but not used
error: command 'gcc' failed with exit status 1
I googled around but found nothing. Any help?
Thanks in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Im having problems trying to install the library (RH Linux btw, Python 2.4.1, Mysql 3.23 with devel). I tried both versions of the library, 1.2.0 and 1.2.1rc3 (same problems).
When I first executed: python setup.py install I got the problems about the quotes (') in the -I path, wich I fixed with:
setup.py L93:
extra_compile_args = config("cflags")
> extra_compile_args = [ i.replace("'","") for i in extra_compile_args ]
After fixing that, the compiling starts, but fails in a different way:
[xxx@xxx MySQL-python-1.2.1c3]$ python setup.py build
running build
running build_py
running build_ext
building '_mysql' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python2.4 -c _mysql.c -o build/temp.linux-i686-2.4/_mysql.o -I/usr/include/mysql
_mysql.c: In function
_mysql_server_init': _mysql.c:187: warning: unused variable
item'_mysql.c:186: warning: unused variable
groupc' _mysql.c:186: warning: unused variable
i'_mysql.c:186: warning: unused variable
cmd_argc' _mysql.c:185: warning: unused variable
s'_mysql.c:262: warning: label
finish' defined but not used _mysql.c: In function
_mysql_ConnectionObject_Initialize':_mysql.c:517:
MYSQL_OPT_LOCAL_INFILE' undeclared (first use in this function) _mysql.c:517: (Each undeclared identifier is reported only once _mysql.c:517: for each function it appears in.) _mysql.c: At top level: _mysql.c:172: warning:
_mysql_server_initdoc' defined but not used_mysql.c:267: warning: `_mysql_server_enddoc' defined but not used
error: command 'gcc' failed with exit status 1
I googled around but found nothing. Any help?
Thanks in advance