升级 Mercurial 安装以使用不同版本的 Python
我已经研究这个问题好几个小时了。
我正在尝试将我的存储库更改推送到 kiln,但出现此错误:
certificate checking requires Python 2.6
我已经按照此 链接,但错误仍然存在。顺便说一下,系统是ClearOS 5.2。
我的第一个问题是,安装/升级 Mercurial 会破坏我现有的安装吗?
我尝试按照这些说明重新安装link1并且[我丢失了另一个链接],但遇到另一个错误。 然后我找到了这个命令 debuginstall ,结果如下:
[root@system mercurial-1.7.5]# hg debuginstall
Checking encoding (UTF-8)...
Checking installed modules (/usr/lib/python2.4/site-packages/mercurial)...
Checking templates...
Checking patch...
Checking commit editor...
Checking username...
no username supplied (see "hg help config")
(specify a username in your configuration file)
1 problems detected, please check your install!
我的另一个问题是,我可以更改现有的 hg 设置以仅使用已安装的 python26 吗?
提前致谢!
I have been banging on this for hours now.
I am trying to push my repo changes to kiln but I get this error:
certificate checking requires Python 2.6
I have already installed a parallel install of Python 2.6 by following the instructions from this link, but the error still persists. The system is ClearOS 5.2 by the way.
My first question is, will installing/upgrading mercurial break my existing install?
I tried to re-install following these intstructions link1 and [i lost the other link], but encountered another error.
Then I found this command debuginstall and here's the result:
[root@system mercurial-1.7.5]# hg debuginstall
Checking encoding (UTF-8)...
Checking installed modules (/usr/lib/python2.4/site-packages/mercurial)...
Checking templates...
Checking patch...
Checking commit editor...
Checking username...
no username supplied (see "hg help config")
(specify a username in your configuration file)
1 problems detected, please check your install!
My another question is, can I just change the existing hg's settings to just use the python26 which is already installed?
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将您自己的 python(无论您需要什么版本)安装到单独的目录(例如:
/usr/local/python-2.7.2/
),然后将 hg 的调用从#! /usr/bin/python
到#!/usr/local/python-2.7.2/bin/python
这样你就不会打扰现有的/系统安装,但是你可以仅在需要的地方使用您想要的版本。唯一烦人的部分是处理两组库,因为这实际上是维护两个并行安装。因此,如果“额外”Python 需要库,则必须使用额外安装的调用和路径手动安装它们。听起来很复杂,但如果您只需要一个程序,那么您设置一次就可以了。Install your own python (of whatever version you need) to a separate directory (e.g.:
/usr/local/python-2.7.2/
) and then change the invocation of hg from#!/usr/bin/python
to#!/usr/local/python-2.7.2/bin/python
This way you don't disturb the existing/system installation, but you can use the version you want only where you need it. The only annoying part about this is dealing with two sets of libraries, since this is really maintaining two parallel installations. So if the 'extra' python needs libraries, you must install them manually using the invocation and paths of the extra installation. Sounds complicated, but if you only need it for one program, then you set it up once and it's good to go.