【问题标题】:Trouble Installing Git on CentOS在 CentOS 上安装 Git 时遇到问题
【发布时间】:2011-12-21 21:39:10
【问题描述】:

我在 CentOS 5.5 x86_64 上安装 Git 时遇到问题。我不是这方面的专家,有什么问题?

root@server [/]# yum install git
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * epel: fedora-epel.mirror.lstn.net
 * rpmfusion-free-updates: mirror.us.leaseweb.net
 * rpmfusion-free-updates-testing: mirror.us.leaseweb.net
 * rpmfusion-nonfree-updates: mirror.us.leaseweb.net
 * rpmfusion-nonfree-updates-testing: mirror.us.leaseweb.net
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:1.7.4.1-1.el5 set to be updated
--> Processing Dependency: perl-Git = 1.7.4.1-1.el5 for package: git
--> Processing Dependency: perl(Error) for package: git
--> Processing Dependency: perl(Git) for package: git
--> Finished Dependency Resolution
git-1.7.4.1-1.el5.x86_64 from epel has depsolving problems
  --> Missing Dependency: perl(Error) is needed by package git-1.7.4.1-1.el5.x86_64 (epel)
git-1.7.4.1-1.el5.x86_64 from epel has depsolving problems
  --> Missing Dependency: perl-Git = 1.7.4.1-1.el5 is needed by package git-1.7.4.1-1.el5.x86_64 (epel)
git-1.7.4.1-1.el5.x86_64 from epel has depsolving problems
  --> Missing Dependency: perl(Git) is needed by package git-1.7.4.1-1.el5.x86_64 (epel)
Error: Missing Dependency: perl(Error) is needed by package git-1.7.4.1-1.el5.x86_64 (epel)
Error: Missing Dependency: perl-Git = 1.7.4.1-1.el5 is needed by package git-1.7.4.1-1.el5.x86_64 (epel)
Error: Missing Dependency: perl(Git) is needed by package git-1.7.4.1-1.el5.x86_64 (epel)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

【问题讨论】:

    标签: linux git centos yum


    【解决方案1】:

    想通了,是因为cpanel。

    这解决了它:

    yum install git --disableexcludes=main
    

    【讨论】:

    • 谢谢,这个解决方法在没有安装 cpanel 的服务器上运行良好,但仍设置为在 /etc/yum.conf 中排除 perl。
    • 这最终会改变/覆盖 cPanel 安装的 perl 版本吗?这会成为潜在的问题来源吗?
    猜你喜欢
    • 2012-07-03
    • 2011-06-16
    • 2014-05-11
    • 2013-06-20
    • 2014-08-12
    • 2023-04-09
    • 2023-04-09
    • 2019-06-23
    • 2017-10-18
    相关资源
    最近更新 更多