When we set the Mysqldb in the python,we may make all kinds of errors.
For example:
_mysql.c: At top level:
xxxxxxxxxxxxxxx
xxxxxxxxxxxxxxx
error: command ‘gcc‘ failed with exit status 1
so we just do this :
yum install python-devel mysql-devel zlib-devel openssl-devel
we just lost something in the python .and then
python setup.py build
python setup.py install
原文:http://www.cnblogs.com/Renekton/p/3551722.html