CentOs 5下如何安装python2.6-devel包

发布于 2024-08-27 07:13:22 字数 209 浏览 12 评论 0原文

我需要在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

浅语花开 2024-09-03 07:13:22

在 CentOS 6.2 上,我通过找到正确版本的 python-devel 解决了问题:

yum search python | grep -i devel

然后我安装了:

yum  install python-devel.x86_64

并且:

easy_install psycopg2

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
山田美奈子 2024-09-03 07:13:22

我有同样的问题,这个精彩的链接为我解决了它...

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.

忆依然 2024-09-03 07:13:22

实际上,您不必遵循文章中的所有步骤 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文