2013-11-21 31 views
9

我想安装在CentOS混帐混帐安装,我运行这个命令在CentOS

yum install git-core 

但问题是,我得到这些错误:

Loaded plugins: fastestmirror, security 
Loading mirror speeds from cached hostfile 
* epel: mirrors.solfo.com 
Setting up Install Process 
Resolving Dependencies 
--> Running transaction check 
---> Package git.x86_64 0:1.7.1-3.el6_4.1 will be installed 
--> Processing Dependency: perl-Git = 1.7.1-3.el6_4.1 for package: git-1.7.1-3.e 
l6_4.1.x86_64 
--> Processing Dependency: perl(Git) for package: git-1.7.1-3.el6_4.1.x86_64 
--> Processing Dependency: perl(Error) for package: git-1.7.1-3.el6_4.1.x86_64 
--> Finished Dependency Resolution 
Error: Package: git-1.7.1-3.el6_4.1.x86_64 (updates) 
      Requires: perl-Git = 1.7.1-3.el6_4.1 
Error: Package: git-1.7.1-3.el6_4.1.x86_64 (updates) 
      Requires: perl(Error) 
Error: Package: git-1.7.1-3.el6_4.1.x86_64 (updates) 
      Requires: perl(Git) 
You could try using --skip-broken to work around the problem 
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows: 
frontpage-2002-SR1.2.i386 has missing requires of libexpat.so.0 
sendmail-cf-8.14.4-8.el6.noarch has missing requires of sendmail = ('0', '8.14.4 
', '8.el6') 

我如何管理解决那个问题?

+0

尽量先安装perl,该消息表明, perl需要。 –

+0

@EnginePai我尝试安装perl,但似乎不起作用,仍然存在上述错误。 – PinoyStackOverflower

+0

尝试'yum install git' – spuder

回答

33

blog article by lishevita提到:

事实证明,为了交友块安装通过百胜任何perl的包,以确保没有与他们定制的软件包干扰。
颈部疼痛!

好消息是,git所需的perl软件包不会与Cpanel混淆,因此您可以继续安装它们。
百胜有一个漂亮的一次性选项,让您解决排除包装问题

yum --disableexcludes=main install git 

我找遍了这个小珍闻,只找到了这个post by Nick Andreson
希望有这篇文章,并回到他的帖子的链接将有助于改善未来的搜索,以便更容易地找到你的答案! (!和感谢,尼克您的文章)

或者你可以使用的cPanel自己的混帐位于:

[email protected] [/]# /usr/local/cpanel/3rdparty/bin/git --version 
git version 1.8.3.4 
+0

完全晦涩的答案,但完全正确。干得不错! – etusm

0

我有一个远程服务器上安装的git相同的问题,搜索一会儿后我发现一个gcc依赖的方式来解决它是 百胜-y是 百胜后安装gcc -y安装混帐

我希望这可以帮助

看看是否一切正常通过搜索混帐 它的git 它应该给你一个路径的git安装 和被越来越舒尔 的git --version