在CentOs上安装Git [英] Installing Git on CentOs

查看:115
本文介绍了在CentOs上安装Git的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在CentOs上安装git,我运行这个命令

  yum install git-core 

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

<$加载插件:最快镜像,安全性
从缓存的主机文件加载镜像速度
* epel:mirrors.solfo.com
设置安装进程
解决依赖关系
- >运行事务检查
--->包git.x86_64 0:1.7.1-3.el6_4.1将被安装
- >处理相关性:perl-Git = 1.7.1-3.el6_4.1 for package:git-1.7.1-3.e
l6_4.1.x86_64
- >处理相关性:perl(Git)for package:git-1.7.1-3.el6_4.1.x86_64
- >处理相关性:perl(Error)for package:git-1.7.1-3.el6_4.1.x86_64
- >完成的依赖关系解析
错误:包:git-1.7.1-3.el6_4.1.x86_64(更新)
需要:perl-Git = 1.7.1-3.el6_4.1
错误:包:git-1.7.1-3.el6_4.1.x86_64(更新)
需要:perl(错误)
错误:包:git-1.7.1-3.el6_4.1。 x86_64(更新)
需要:perl(Git)
您可以尝试使用--skip-broken来解决问题
**找到2个预先存在的rpmdb问题, yum check'输出如下:
frontpage-2002-SR1.2.i386缺少libexpat.so.0的需求
sendmail-cf-8.14.4-8.el6.noarch缺少sendmail的需求=('0','8.14.4
','8.el6')

我怎样才能解决这个问题?

解决方案

安装git-on-centos-w-cpanelrel =noreferrer>博客文章by lishevita 提及:


事实证明, Cpanel块安装通过yum提供任何perl软件包,以确保没有任何干扰他们的定制软件包

NECK的痛苦!


好消息是,git所需的perl软件包不会与Cpanel混淆,因此您可以继续安装它们。

Yum有一个漂亮的一次性选项,可以让您避开排除的包裹问题



  yum --disableexcludes = main install git 




I搜索所有OVER这个小珍闻,只发现它发贴者Nick Andreson
希望这篇文章以及回复他的帖子有助于改进未来的搜索,以便您更轻松地找到答案! (并感谢,尼克为您的文章!)

或者你可以使用cPanel自己的git:

  root @ CentOS-cPanel-box [/]#/ usr / local / cpanel / 3rdparty / bin / git --version 
git version 1.8。 3.4


I want to install git on CentOs, i'm running this command

yum install git-core

But the problem is, I am getting these errors:

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')

How can I managed to solved that one?

解决方案

This blog article by lishevita mentions:

It turns out, Cpanel blocks installation of any perl packages through yum in order to make sure that nothing interferes with their customized packages.
Pain in the NECK!

The good news is that the perl packages that git needs won't mess with Cpanel, so you can go ahead and install them.
Yum has a spiffy one time option to let you get around the excluded package problem.

yum --disableexcludes=main install git

I searched ALL OVER for this little tidbit, and only found it this post by Nick Andreson.
Hopefully, having this post, and the link back to his post will help improve searches in the future so that you find your answer more easily!! (And thanks, Nick for your post!)

Or you can use cPanel's own git located:

root@CentOS-cPanel-box [/]# /usr/local/cpanel/3rdparty/bin/git --version
git version 1.8.3.4

这篇关于在CentOs上安装Git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆