![在 centos 服务器上安装 Git 时出错](https://linux22.com/image/571949/%E5%9C%A8%20centos%20%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A%E5%AE%89%E8%A3%85%20Git%20%E6%97%B6%E5%87%BA%E9%94%99.png)
我正在尝试在 centos 5.5 上安装 git,但出现以下错误:
git-email-1.7.7.3-1.w5.x86_64 from webtatic has depsolving problems
--> Missing Dependency: perl(Net::SMTP::SSL) is needed by package git-email-1.7.7.3-1.w5.x86_64 (webtatic)
Error: Missing Dependency: perl(Git) is needed by package git-svn-1.7.7.3-1.w5.x86_64 (webtatic)
Error: Missing Dependency: perl(URI) >= 1.17 is needed by package subversion-1.6.13-0.1.el5.rf.x86_64 (webtatic)
Error: Missing Dependency: perl(Term::ReadKey) is needed by package git-svn-1.7.7.3-1.w5.x86_64 (webtatic)
Error: Missing Dependency: perl(Authen::SASL) is needed by package git-email-1.7.7.3-1.w5.x86_64 (webtatic)
Error: Missing Dependency: perl(DBI) is needed by package git-cvs-1.7.7.3-1.w5.x86_64 (webtatic)
Error: Missing Dependency: perl(Git) is needed by package git-cvs-1.7.7.3-1.w5.x86_64 (webtatic)
Error: Missing Dependency: perl(Error) is needed by package git-1.7.7.3-1.w5.x86_64 (webtatic)
Error: Missing Dependency: perl(Net::SMTP::SSL) is needed by package git-email-1.7.7.3-1.w5.x86_64 (webtatic)
Error: Missing Dependency: perl(Error) is needed by package git-email-1.7.7.3-1.w5.x86_64 (webtatic)
Error: Missing Dependency: perl-Git = 1.7.7.3-1.w5 is needed by package git-1.7.7.3-1.w5.x86_64 (webtatic)
Error: Missing Dependency: perl(Git) is needed by package git-1.7.7.3-1.w5.x86_64 (webtatic)
Error: Missing Dependency: perl(Git) is needed by package git-email-1.7.7.3-1.w5.x86_64 (webtatic)
Error: Missing Dependency: perl-Git = 1.7.7.3-1.w5 is needed by package git-email-1.7.7.3-1.w5.x86_64 (webtatic)
Error: Missing Dependency: perl-Git = 1.7.7.3-1.w5 is needed by package git-all-1.7.7.3-1.w5.x86_64 (webtatic)
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
我使用这个安装:
rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
yum install --enablerepo=webtatic git-all
我该如何修复它?
答案1
删除您正在使用的控制面板解决方案,因为它在您的 yum 配置中有排除项,会阻止 Perl 模块。哦,git 在 EPEL 中。