Centos 6.6 上 Emacs 依赖 librsvg2 错误

Centos 6.6 上 Emacs 依赖 librsvg2 错误

我正在尝试在我的 CentosBox 上安装 emacs 和 graphviz。它无法解决 librsvg2:

$ sudo yum install emacs graphviz Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile * base: mirrors.vooservers.com * epel: mirrors.coreix.net * extras: mirror.ukhost4u.com * rpmfusion-free-updates: mirrors.coreix.net * updates: centos.mirroring.pulsant.co.uk Resolving Dependencies --> Running transaction check ---> Package emacs.x86_64 1:23.1-25.el6 will be installed --> Processing Dependency: emacs-common = 1:23.1-25.el6 for package: 1:emacs-23.1-25.el6.x86_64 --> Processing Dependency: m17n-db-datafiles for package: 1:emacs-23.1-25.el6.x86_64 --> Processing Dependency: librsvg2 for package: 1:emacs-23.1-25.el6.x86_64 --> Processing Dependency: librsvg-2.so.2()(64bit) for package: 1:emacs-23.1-25.el6.x86_64 --> Processing Dependency: libotf.so.0()(64bit) for package: 1:emacs-23.1-25.el6.x86_64 --> Processing Dependency: libm17n-flt.so.0()(64bit) for package: 1:emacs-23.1-25.el6.x86_64 --> Processing Dependency: libm17n-core.so.0()(64bit) for package: 1:emacs-23.1-25.el6.x86_64 ---> Package graphviz.x86_64 0:2.26.0-10.el6 will be installed --> Processing Dependency: libgd.so.2()(64bit) for package: graphviz-2.26.0-10.el6.x86_64 --> Processing Dependency: libXaw.so.7()(64bit) for package: graphviz-2.26.0-10.el6.x86_64 --> Running transaction check ---> Package emacs.x86_64 1:23.1-25.el6 will be installed --> Processing Dependency: librsvg2 for package: 1:emacs-23.1-25.el6.x86_64 --> Processing Dependency: librsvg-2.so.2()(64bit) for package: 1:emacs-23.1-25.el6.x86_64 ---> Package emacs-common.x86_64 1:23.1-25.el6 will be installed ---> Package gd.x86_64 0:2.0.35-11.el6 will be installed ---> Package libXaw.x86_64 0:1.0.11-2.el6 will be installed ---> Package libotf.x86_64 0:0.9.9-3.1.el6 will be installed ---> Package m17n-db-datafiles.noarch 0:1.5.5-1.1.el6 will be installed --> Processing Dependency: m17n-db = 1.5.5-1.1.el6 for package: m17n-db-datafiles-1.5.5-1.1.el6.noarch ---> Package m17n-lib.x86_64 0:1.5.5-2.el6_1.1 will be installed --> Running transaction check ---> Package emacs.x86_64 1:23.1-25.el6 will be installed --> Processing Dependency: librsvg2 for package: 1:emacs-23.1-25.el6.x86_64 --> Processing Dependency: librsvg-2.so.2()(64bit) for package: 1:emacs-23.1-25.el6.x86_64 ---> Package m17n-db.noarch 0:1.5.5-1.1.el6 will be installed --> Finished Dependency Resolution Error: Package: 1:emacs-23.1-25.el6.x86_64 (base) Requires: librsvg-2.so.2()(64bit) Error: Package: 1:emacs-23.1-25.el6.x86_64 (base) Requires: librsvg2 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

我想也许还有另一个版本的 emacs 可用。所以我根据这个问题检查

$ yum --showduplicates list emacs Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.coreix.net * epel: mirrors.coreix.net * extras: mirror.mhd.uk.as44574.net * rpmfusion-free-updates: mirrors.coreix.net * updates: centos.mirroring.pulsant.co.uk Available Packages emacs.x86_64 1:23.1-25.el6 base

那么,如果 emacs 是 Centos 基本软件包的一部分,那么为什么它依赖于 librsvg2(它不是 Centos 的一部分)呢?

答案1

当我抬头时emacs 通过 rpmfind我确实看到了对 librsvg2 rpm 的依赖性。尝试运行一下rpmquery --requires,看看您是否也没有看到它。

无论哪种情况,运行yum -y install librsvg2添加该包都非常简单。

相关内容