CentOs 5下如何安装python2.6-devel包
我需要在python2.6下安装mysql-python。 mysql-python 包需要依赖于 libpython2.6.so.1.0(64bit) 的 python2.6-devel 包 我在网上找到了一些python2.6-devel包,但找不到libpython2.6 服务器架构为x86_64。
也许有人有这个库,或者知道我在哪里可以找到它。
感谢您的帮助)
I need to install mysql-python under python2.6.
mysql-python package needs python2.6-devel package that depends on the libpython2.6.so.1.0(64bit)
I found on the net some python2.6-devel packages, but can't find libpython2.6
Server architecture is x86_64.
Maybe someone have this lib, or know where i can find it.
Thanks for help)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在 CentOS 6.2 上,我通过找到正确版本的 python-devel 解决了问题:
然后我安装了:
并且:
On CentOS 6.2, I solved the problem by finding the right version of the python-devel :
Then I installed :
And :
我有同样的问题,这个精彩的链接为我解决了它...
http://blog.milford.io/2010/08/new-method-for-installing-python-2-6- 4-with-mysql-python-on-centos-5-5/
我按照一些不按顺序执行的步骤,因为我有点坐立不安,并收到了一些有趣的错误消息。我无法构建 mysqldb,但随后我运行 yum 来安装我应该构建的软件包,瞧,mysqldb 现在构建并安装了。
如果之后仍然不起作用请告诉我。
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.
实际上,您不必遵循文章中的所有步骤 http://blog.milford.io/2010/08/new-method-for-installing-python-2-6-4-with -mysql-python-on-centos-5-5/。
只需从源代码构建 python2.6(+) 即可解决问题,即不要依赖 yum。
如果你已经通过 yum 安装了 python26,你可以先删除它(还有 python26-devel),然后从源代码重新安装 python2.6,然后是 setuptools,最后是 MySQL-python。
以下链接可能有帮助:
http://blog.csdn.net/inte_sleeper/archive/2011 /06/20/6556103.aspx
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