Set the Mysqldb in Python

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

posted @ 2014-02-16 20:18  Renekton  阅读(142)  评论(0编辑  收藏  举报