mod_python 使用错误版本

发布于 2024-09-06 15:24:52 字数 530 浏览 5 评论 0原文

所以redhat使用python 2.4,我需要升级到python 2.6(所以我做了altinstall)有人知道如何安装mod_python吗? (我正在从源代码安装。)这就是我运行的内容:

./configure --with-apxs=/usr/sbin/apxs
./configure --with-python=/usr/local/bin/python2.6
make
make install

但是根据堆栈跟踪,我得到 mod_python 仍在使用 python 2.4(这是 redhat 4 的默认设置),我需要它使用 2.6。我仍然是新手......任何正确方向的指示将不胜感激!

注意:我无法使用 wsgi,因为我的服务器托管了一些依赖 mod_pyhton 的其他网站,如果我安装了这两个网站,我听说会发生不好的事情(段错误、死锁等...)如果我可以将其安装在不同的名称(比如 mod_python2.6),但我不知道这是否可能。 我还尝试了 Chris Lea 的存储库,但缺少 redhat 4 64 位的 mod_pyhton

So redhat uses python 2.4 and I need to upgrade to python 2.6 (so I did an altinstall) does anybody know how to install mod_python? (I am installing from source.) This is what I ran:

./configure --with-apxs=/usr/sbin/apxs
./configure --with-python=/usr/local/bin/python2.6
make
make install

But according to a stack trace I get mod_python is still using python 2.4 (which is the default for redhat 4) I need it to use 2.6. I'm still a newbie to this... any pointer in the right direction would be greatly appreciated!

N.B.: I can't use wsgi because my server hosts some other websites that relies on mod_pyhton and if I install both I heard bad things happen (segfaults, deadlocks etc...) It would be I ideal if I could install it under a different name (say mod_python2.6) but I don't know if that is even possible.
I also tried the Chris Lea's repository but it's missing mod_pyhton for redhat 4 64 bit

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文