【问题标题】:Installing Mercurial on Centos 6在 Centos 6 上安装 Mercurial
【发布时间】:2013-06-21 07:10:55
【问题描述】:

我正在尝试在 CentOs 6.3 上安装 mercurial 2.2,但是我觉得 centos 的存储库有点过时,因为 yum 安装总是显示您的 mercurial 是最新的。

现在搜索了一些论坛,并使用以下命令和存储库找到了一些其他存储库来更新 mercurial 客户端:

**

rpm -Uvh http://pkgs.repoforge.org/mercurial/mercurial-2.2.2-1.el6.rfx.i686.rpm

**

但它会导致以下错误:

(已安装的)emacs-mercurial-1.4-3.el6.i686 需要 hg = 1.4-3.el6

(已安装的)mercurial-hgk-1.4-3.el6.i686 需要 hg = 1.4-3.el6

我认为由于某些包依赖性,我无法安装。

任何帮助/指针将不胜感激。

【问题讨论】:

    标签: mercurial centos centos6


    【解决方案1】:

    我认为您需要卸载较旧 (1.4.3) 版本的 Mercurial。或者至少先去掉 emacs-mercurial 和 mercurial-hgk 包。

    【讨论】:

      【解决方案2】:

      来自博客:Install Mercurial Centos 6 VPS Mercurial 2.2.2 Centos 6.4 setup

      这是您唯一可以安装的软件包,因为其他 RPM 软件包需要 python 2.4 而 Centos 6 安装了 python 2.6。

      rpm -Uvh http://pkgs.repoforge.org/mercurial/mercurial-2.2.2-1.el6.rfx.x86_64.rpm
      

      测试您的安装:

      [root@~]# hg version
      Mercurial Distributed SCM (version 2.2.2)
      (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.
      

      【讨论】:

      【解决方案3】:
      echo -e "[mercurial.selenic.com]\nname=mercurial.selenic.com\nbaseurl=https://www.mercurial-scm.org/release/centos\$releasever\nenabled=1\ngpgcheck=0" > /etc/yum.repos.d/mercurial.selenic.com.repo \ 
      && yum install -y mercurial
      

      in the mercurial wiki 所述。虽然,gpgcheck=0 有点邪恶,但如果可能,我会跳过它。

      【讨论】:

        猜你喜欢
        • 2018-12-10
        • 2013-12-06
        • 2013-08-08
        • 2013-06-11
        • 2014-07-10
        • 2014-06-11
        • 2016-03-06
        • 1970-01-01
        相关资源
        最近更新 更多