2014-01-18 228 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