How to install python2.6-devel package under CentOs 5

两盒软妹~` 提交于 2019-11-29 07:06:09

I have the same issue and this wonderful link solved it for me...

http://blog.milford.io/2010/08/new-method-for-installing-python-2-6-4-with-mysql-python-on-centos-5-5/

I followed some of the steps out of order because I was a little antsy and got some interesting error messages. I couldn't get mysqldb to build, but then I ran yum to install the packages i was supposed to be building and voila, mysqldb now builds and installs.

Let me know if it still doesn't work afterwards.

On CentOS 6.2, I solved the problem by finding the right version of the python-devel :

yum search python | grep -i devel

Then I installed :

yum  install python-devel.x86_64

And :

easy_install psycopg2

Actually you don't have to follow all steps in the article http://blog.milford.io/2010/08/new-method-for-installing-python-2-6-4-with-mysql-python-on-centos-5-5/. Just build python2.6(+) from source will solve the problem, i.e., don't rely on yum. If you have python26 installed by yum, you can remove it first(and python26-devel too), and re-install python2.6 from source, then setuptools, and finally MySQL-python.

The following link may help: http://blog.csdn.net/inte_sleeper/archive/2011/06/20/6556103.aspx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!