我在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.

最佳答案

想通了,这是因为cpanel。

可以解决此问题:

yum install git --disableexcludes=main

关于linux - 无法在CentOS上安装Git,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/8007675/

10-13 07:34