首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Mercurial升级OpenSUSE Linux

Mercurial升级OpenSUSE Linux
EN

Server Fault用户
提问于 2012-09-25 01:19:12
回答 1查看 484关注 0票数 0

我想升级OpenSUSE盒上的mercurial版本。

这就是我所拥有的

测试99:~/TEST_AREA/hgplayarea# hg --版本

代码语言:javascript
复制
Mercurial Distributed SCM (version 1.5)

Copyright (C) 2005-2010 Matt Mackall <mpm@selenic.com> and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

测试99:~/TEST_AREA/hgplayarea#

-

test99 99:~# cat /etc/SuSE-释放

代码语言:javascript
复制
openSUSE 11.3 (i586)
VERSION = 11.3

测试99:~#

-

我试着用"easy_install“在这台机器上升级mercurial

代码语言:javascript
复制
test99:~/TEST_AREA/hgplayarea # easy_install -U mercurial

获得上述命令的以下输出:

代码语言:javascript
复制
Searching for mercurial
Reading http://pypi.python.org/simple/mercurial/
Reading http://mercurial.selenic.com/
Reading http://www.selenic.com/mercurial
Reading http://mercurial.selenic.com/release/
Best match: mercurial 2.3.1
Downloading http://mercurial.selenic.com/release/mercurial-2.3.1.tar.gz
Processing mercurial-2.3.1.tar.gz
Running mercurial-2.3.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-jNQkmu/mercurial-2.3.1/egg-dist-tmp-riveHL
zip_safe flag not set; analyzing archive contents...
mercurial.lsprof: module references __file__
mercurial.commands: module references __file__
mercurial.extensions: module references __file__
mercurial.help: module references __file__
mercurial.util: module references __file__
mercurial.templater: module references __file__
mercurial.i18n: module references __file__
hgext.mq: module references __file__
Adding mercurial 2.3.1 to easy-install.pth file
Installing hg script to /usr/local/bin

Installed /usr/local/lib/python2.6/site-packages/mercurial-2.3.1-py2.6-linux-i686.egg
Processing dependencies for mercurial
Finished processing dependencies for mercurial

在这次升级之后,我正在运行: hg --版本--或者任何其他的hg命令。我收到一个错误:

hg --版本

代码语言:javascript
复制
 Traceback (most recent call last):
 File "/usr/bin/hg", line 25, in <module>
 mercurial.util.set_binary(fp)
 File "/usr/local/lib/python2.6/site-packages/mercurial-2.3.1-py2.6-linux-i686.egg/mercurial/demandimport.py", line 87, in __getattribute__
   return getattr(self._module, attr)
 AttributeError: 'module' object has no attribute 'set_binary'

hg克隆http://test99.tsh.company.com/hg/TestHgRepo1/ StarRepo

代码语言:javascript
复制
Traceback (most recent call last):
  File "/usr/bin/hg", line 25, in <module>
    mercurial.util.set_binary(fp)
  File "/usr/local/lib/python2.6/site-packages/mercurial-2.3.1-py2.6-linux-i686.egg/mercurial/demandimport.py", line 87, in __getattribute__
    return getattr(self._module, attr)
AttributeError: 'module' object has no attribute 'set_binary'
(reverse-i-search)`su': hg ^Cmmary

任何帮助,我可以做什么来卸载它--或安装正确的版本。

我这么做是为了看看我是否能让Mercurial_Keyring和acl扩展工作.

我使用"easy_install“,因为我想安装最新版本的mercurial。在OpenSUSE上,我使用的是"yast -i mercurial",它试图降低Mercurial 1.2.x.x版本,而不是easy_install所做的最新版本。我最初使用"yast“方式安装mercurial。

尝试了以下方法,改变了

https://developers.kilnhg.com/Code/Kiln/TortoiseHg/TortoiseHg/History/9add2d4511ce

hg --版本

代码语言:javascript
复制
  File "/usr/bin/hg", line 25
    _setbinary(fp)
             ^
EN

回答 1

Server Fault用户

发布于 2012-09-25 16:12:47

为了解决这个问题。

  1. 亚斯特-去除汞
  2. 亚斯特-移除蟒蛇
  3. yast -i python-nautilus python-gtk python-gtk-devel python-pysvn dbus-1 python dbus-1 python-devel subversion meld
  4. 亚斯特-i汞

现在,我在做:

hg --版本

代码语言:javascript
复制
Mercurial Distributed SCM (version 2.3.1)
(see http://mercurial.selenic.com for more information)

Copyright (C) 2005-2012 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

python --版本

代码语言:javascript
复制
Python 2.6.5

奇怪吗??:1.yast -i mercurial (在安装过程中说它正在做mercurial 1.2.xx或1.3.xx),但是hg -版本显示了一个不同的版本。"easy_install mercurial“确实安装了2.3.x,但是我使用yast删除了它。安装了1.x.x,最后使用"hg - version“显示的工作版本为2.3.1

  1. 即使在我运行yast之后--删除<...> (mercurial/python)。我仍然能够浏览http :// test99 : 443 / hg链接,它显示了我所有的存储库,并且仍然显示它。我在执行yast -remove之前创建的那个。
票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/431633

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档