缺少依赖项:perl(YAML::Any)

缺少依赖项:perl(YAML::Any)

当我在 centos5 服务器上运行 yum upgrade 时,git 遇到了问题。

yum upgrade

输出:

Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:1.7.11.3-1.el5.rf set to be updated
---> Package perl-Git.x86_64 0:1.7.11.3-1.el5.rf set to be updated
--> Processing Dependency: perl(SVN::Ra) for package: perl-Git
--> Processing Dependency: perl(SVN::Delta) for package: perl-Git
--> Processing Dependency: perl(SVN::Client) for package: perl-Git
--> Processing Dependency: perl(YAML::Any) for package: perl-Git
--> Processing Dependency: perl(SVN::Core) for package: perl-Git
--> Running transaction check
---> Package perl-Git.x86_64 0:1.7.11.3-1.el5.rf set to be updated
--> Processing Dependency: perl(YAML::Any) for package: perl-Git
---> Package subversion-perl.x86_64 0:1.6.11-10.el5_8 set to be updated
--> Processing Dependency: subversion = 1.6.11-10.el5_8 for package: subversion-perl
--> Processing Dependency: libsvn_wc-1.so.0()(64bit) for package: subversion-perl
--> Processing Dependency: libsvn_fs-1.so.0()(64bit) for package: subversion-perl
--> Processing Dependency: libsvn_diff-1.so.0()(64bit) for package: subversion-perl
--> Processing Dependency: libsvn_subr-1.so.0()(64bit) for package: subversion-perl
--> Processing Dependency: libsvn_delta-1.so.0()(64bit) for package: subversion-perl
--> Processing Dependency: libsvn_repos-1.so.0()(64bit) for package: subversion-perl
--> Processing Dependency: libsvn_ra-1.so.0()(64bit) for package: subversion-perl
--> Processing Dependency: libsvn_client-1.so.0()(64bit) for package: subversion-perl
--> Running transaction check
---> Package perl-Git.x86_64 0:1.7.11.3-1.el5.rf set to be updated
--> Processing Dependency: perl(YAML::Any) for package: perl-Git
---> Package subversion.x86_64 0:1.6.11-10.el5_8 set to be updated
--> Finished Dependency Resolution
perl-Git-1.7.11.3-1.el5.rf.x86_64 from rpmforge has depsolving problems
  --> Missing Dependency: perl(YAML::Any) is needed by package perl-Git-1.7.11.3-1.el5.rf.x86_64 (rpmforge)
Error: Missing Dependency: perl(YAML::Any) is needed by package perl-Git-1.7.11.3-1.el5.rf.x86_64 (rpmforge)

当我尝试 yum info perl-YAML 时,它说 perl-YAML 已安装。

Name       : perl-YAML
Arch       : noarch
Version    : 0.66
Release    : 2.el5.art
Size       : 171 k
Repo       : installed

这里有什么问题?

谢谢 flo

答案1

我添加了这个:

http://pkgs.repoforge.org/perl-YAML/perl-YAML-0.72-1.el5.rf.noarch.rpm

对我有用:

# yum 安装 git
已加载插件:安全
设置安装过程
解决依赖关系
--> 正在运行交易检查
---> 软件包 git.x86_64 0:1.7.11.3-1.el5.rf 设置为更新
--> 处理软件包 git 的依赖关系:perl-Git = 1.7.11.3-1.el5.rf
--> 处理软件包 git 的依赖关系:perl(Git)
--> 正在运行交易检查
---> 软件包 perl-Git.x86_64 0:1.7.11.3-1.el5.rf 设置为更新
--> 处理依赖关系:perl(YAML::Any) 对于包:perl-Git
--> 正在运行交易检查
---> 软件包 perl-YAML.noarch 0:0.72-1.el5.rf 设置为更新
--> 完成依赖解析

依赖关系已解决

================================================================================
 软件包 Arch 版本 存储库 大小
================================================================================
安装:
 git x86_64 1.7.11.3-1.el5.rf 第三方 8.2 M
安装依赖项:
 perl-Git x86_64 1.7.11.3-1.el5.rf 第三方 56 k
 perl-YAML noarch 0.72-1.el5.rf 第三方 84 k

交易摘要
================================================================================
安装 3 个包
升级 0 个套餐

总下载大小:8.3 M
这样可以吗 [y/N]: y
正在下载软件包:
(1/3):perl-Git-1.7.11.3-1.el5.rf.x86_64.rpm | 56 kB 00:00
(2/3):perl-YAML-0.72-1.el5.rf.noarch.rpm | 84 kB 00:00
(3/3): git-1.7.11.3-1.el5.rf.x86_64.rpm | 8.2 MB 00:00
----------------------------------------------------------------------------------
总计 38 MB/s | 8.3 MB 00:00
运行 rpm_check_debug
运行交易测试
完成交易测试
交易测试成功
正在运行交易
  安装:perl-YAML 1/3
  安装:perl-Git 2/3
  安装:git 3/3

已安装:
  git.x86_64 0:1.7.11.3-1.el5.rf

已安装依赖项:
  perl-Git.x86_64 0:1.7.11.3-1.el5.rf perl-YAML.noarch 0:0.72-1.el5.rf

完全的!

相关内容