2014-01-18 190 views
1

我试图安装在我的VPS一个merucrial回购有CentOS的6.4水银安装CentOS 6.4的Python错误

,我在下面的tuorial:http://www.jmedved.com/2012/06/mercurial-on-centos-6-2/

为了得到善变的升级版,我输入下面的命令会引发错误。

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

错误是:

error: Failed dependencies: 
    libpython2.6.so.1.0 is needed by mercurial-2.2.2-1.el6.rfx.i686 

我不知道如何解决这个问题。我在互联网上搜索,我一直在尝试,但迄今没有成功。

+0

你为什么不使用repoforge如预期? http://repoforge.org/use/ – Ringding

回答

0

再一次,我不得不在互联网上深入挖掘,但找到了自己的答案。

使用下面的软件包来代替python 2.6(默认使用Centos 6)。执行下面的命令并忽略有问题的命令。

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

上面的命令应该工作马上和安装的Mercurial 2.2

+1

你应该做的是: rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf。 x86_64.rpm yum --enablerepo = rpmforge-extras安装mercurial – Ringding