2011-11-04 40 views
20

Tôi đang gặp sự cố khi cài đặt Git trên CentOS 5.5 x86_64. Tôi không phải là một chuyên gia về loại điều này, vấn đề là gì?Sự cố khi cài đặt Git trên CentOS

[email protected] [/]# 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. 

Trả lời

70

Tìm ra, đó là vì cPanel.

này sửa chữa nó:

yum install git --disableexcludes=main 
+2

Cảm ơn, workaround này làm việc độc đáo và trên máy chủ mà không có cpanel cài đặt, nhưng vẫn thiết lập để loại trừ perl trong file /etc/yum.conf. –

+1

+1 Làm việc như một sự quyến rũ trên CentOS 5 với CPanel. –

+0

đã đồng ý, cũng đã giải quyết được vấn đề của tôi. cảm ơn bạn – azzy81

Các vấn đề liên quan