MySQL Forums
Forum List  »  Italian

Re: MySQL e Python - SQLAlchemy
Posted by: Luca Oliosi
Date: March 03, 2011 05:10AM

Trovata la soluzione: il mysql_config si trova nel pacchetto MySQL-devel, quindi una volta installato funziona.
Ora il problema รจ un altro: quando eseguo il comando 'python setup.py build' ottengo il seguente errore:

running build
running build_py
copying MySQLdb/release.py -> build/lib.linux-x86_64-2.6/MySQLdb
running build_ext
building '_mysql' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/include/mysql -I/store1/Python-2.6/include/python2.6 -c _mysql.c -o build/temp.linux-x86_64-2.6/_mysql.o -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -fasynchronous-unwind-tables
In file included from /store1/Python-2.6/include/python2.6/Python.h:58,
from pymemcompat.h:10,
from _mysql.c:29:
/store1/Python-2.6/include/python2.6/pyport.h:685:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
In file included from _mysql.c:36:
/usr/include/mysql/my_config.h:1060:1: warning: "SIZEOF_LONG" redefined
In file included from /store1/Python-2.6/include/python2.6/Python.h:8,
from pymemcompat.h:10,
from _mysql.c:29:
/store1/Python-2.6/include/python2.6/pyconfig.h:889:1: warning: this is the location of the previous definition
error: command 'gcc' failed with exit status 1

sapete aiutarmi?

grazie



Edited 1 time(s). Last edit at 03/03/2011 05:11AM by Luca Oliosi.

Options: ReplyQuote


Subject
Views
Written By
Posted
3201
March 03, 2011 03:42AM
Re: MySQL e Python - SQLAlchemy
2296
March 03, 2011 05:10AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.