yum install libyaml 出现 depsolving 问题

yum install libyaml 出现 depsolving 问题

尝试在 centos 5 盒子上启动并运行 ruby​​。

yum install libyaml-devel
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * addons: mirror.symnds.com
 * base: centos.mirror.constant.com
 * extras: mirror.umd.edu
 * remi: mirrors.mediatemple.net
 * updates: mirrors.lga7.us.voxel.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libyaml-devel.i386 0:0.1.2-3.el5 set to be updated
--> Processing Dependency: libyaml-0.so.1 for package: libyaml-devel
---> Package libyaml-devel.x86_64 0:0.1.4-1.el5.rf set to be updated
--> Running transaction check
---> Package libyaml.i386 0:0.1.2-3.el5 set to be updated
--> Processing Dependency: libyaml-0.so.1()(64bit) for package: python26-PyYAML
---> Package libyaml.x86_64 0:0.1.4-1.el5.rf set to be updated
--> Finished Dependency Resolution
python26-PyYAML-3.08-5.el5.x86_64 from installed has depsolving problems
  --> Missing Dependency: libyaml-0.so.1()(64bit) is needed by package python26-PyYAML-3.08-5.el5.x86_64 (installed)
Error: Missing Dependency: libyaml-0.so.1()(64bit) is needed by package python26-PyYAML-3.08-5.el5.x86_64 (installed)
 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

Scalr 安装在机器上并在那里管理东西,它是安装 Python 的东西

答案1

注意:此答案仅供参考;CentOS 5 已过时,rpmforge 已停止使用。两者都不应再使用。

您之前libyaml从第三方存储库“rpmforge”进行了安装,但随后禁用了该存储库。要安装相应的软件包libyaml-devel,您需要重新启用该存储库,可以通过在命令行--enablerepo=rpmforge上使用来临时启用yum,也可以通过编辑目录中的存储库文件来永久启用/etc/yum.repos.d

答案2

当我遇到 CentOS 依赖问题时,我会使用 Fedora 的 EPEL(企业 Linux 的额外软件包)。如果您转到以下链接,您会找到 EPEL 的软件包。下载适当的 RPM,然后使用 rpm -ivh 安装。依赖关系应该可以正常解决。我要指出的是,我无法保证 Fedora 的软件包适用于所有这种情况,但是,我个人在企业环境中使用它们从未遇到过问题。

EPEL 项目链接

相关内容