尝试在 CentOS 5.3.3 上 Yum 安装 Mono 时解决缺少依赖项 libexif.so.9 的问题

发布于 2024-08-07 07:56:02 字数 5737 浏览 6 评论 0原文

我正在尝试通过 Yum 在 CentOS 5.3.3 上安装 Mono。

根据我在其他地方找到的说明,我从 Mono 站点获取了 mono.repo 的副本,并将其放置在 /etc/yum.repos.d 目录中。

该文件如下所示:

[mono]
name=Mono for rhel-4-i386 (stable)
baseurl=http://ftp.novell.com/pub/mono/download-stable/rhel-4-i386/
enabled=1
gpgcheck=0

接下来我运行yum install mono-complete,这是日志。

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.5ninesolutions.com
 * updates: mirrors.usc.edu
 * centosplus: mirror.5ninesolutions.com
 * addons: mirror.5ninesolutions.com
 * extras: mirrors.usc.edu
base                                                                                                                                   | 1.1 kB     00:00
updates                                                                                                                                |  951 B     00:00
centosplus                                                                                                                             |  951 B     00:00
addons                                                                                                                                 |  951 B     00:00
extras                                                                                                                                 | 1.1 kB     00:00
Excluding Packages in global exclude list
Finished
Reducing CentOS-5 - Extras to included packages only
Finished
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package mono-complete.i586 0:1.9.1-2.novell set to be updated
--> Processing Dependency: mono-nunit = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-extras = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-data = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-data-firebird = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: bytefx-data-mysql = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-locale-extras = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-data-oracle = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-data-sybase = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-winforms = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-data-sqlite = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-jscript = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-web = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-data-postgresql = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-devel = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: ibm-data-db2 = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-core = 1.9.1-2.novell for package: mono-complete
--> Running transaction check
---> Package mono-web.i586 0:1.9.1-2.novell set to be updated
---> Package mono-data.i586 0:1.9.1-2.novell set to be updated
---> Package mono-data-firebird.i586 0:1.9.1-2.novell set to be updated
---> Package mono-core.i586 0:1.9.1-2.novell set to be updated
--> Processing Dependency: libgdiplus0 for package: mono-core
---> Package mono-nunit.i586 0:1.9.1-2.novell set to be updated
---> Package mono-devel.i586 0:1.9.1-2.novell set to be updated
--> Processing Dependency: glib2-devel for package: mono-devel
---> Package mono-data-sybase.i586 0:1.9.1-2.novell set to be updated
---> Package mono-data-postgresql.i586 0:1.9.1-2.novell set to be updated
---> Package mono-jscript.i586 0:1.9.1-2.novell set to be updated
---> Package mono-data-sqlite.i586 0:1.9.1-2.novell set to be updated
---> Package bytefx-data-mysql.i586 0:1.9.1-2.novell set to be updated
---> Package mono-data-oracle.i586 0:1.9.1-2.novell set to be updated
---> Package ibm-data-db2.i586 0:1.9.1-2.novell set to be updated
---> Package mono-locale-extras.i586 0:1.9.1-2.novell set to be updated
---> Package mono-extras.i586 0:1.9.1-2.novell set to be updated
---> Package mono-winforms.i586 0:1.9.1-2.novell set to be updated
--> Running transaction check
---> Package libgdiplus0.i386 0:1.9-1.rhel4.novell set to be updated
--> Processing Dependency: libXrender.so.1 for package: libgdiplus0
--> Processing Dependency: libungif.so.4 for package: libgdiplus0
--> Processing Dependency: libexif.so.9 for package: libgdiplus0
---> Package glib2-devel.i386 0:2.12.3-4.el5_3.1 set to be updated
--> Running transaction check
---> Package libXrender.i386 0:0.9.1-3.1 set to be updated
---> Package libgdiplus0.i386 0:1.9-1.rhel4.novell set to be updated
--> Processing Dependency: libexif.so.9 for package: libgdiplus0
---> Package giflib.i386 0:4.1.3-7.1.el5_3.1 set to be updated
--> Finished Dependency Resolution
libgdiplus0-1.9-1.rhel4.novell.i386 from mono has depsolving problems
  --> Missing Dependency: libexif.so.9 is needed by package libgdiplus0-1.9-1.rhel4.novell.i386 (mono)
Error: Missing Dependency: libexif.so.9 is needed by package libgdiplus0-1.9-1.rhel4.novell.i386 (mono)

根据 这篇文章CentOS 论坛,我什至启用了 centosplus 存储库 - 但无济于事。

谁能指导我解决 libexif.so.9 缺少的依赖项?我似乎找不到这个确切版本的 rpm...

谢谢, 米^e

I'm trying to install Mono on CentOS 5.3.3 through Yum.

According to the instructions I found elsewhere I grabbed a copy of mono.repo from the Mono site and placed it in the /etc/yum.repos.d directory.

The file looks like this:

[mono]
name=Mono for rhel-4-i386 (stable)
baseurl=http://ftp.novell.com/pub/mono/download-stable/rhel-4-i386/
enabled=1
gpgcheck=0

Next I ran yum install mono-complete and here's the log.

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.5ninesolutions.com
 * updates: mirrors.usc.edu
 * centosplus: mirror.5ninesolutions.com
 * addons: mirror.5ninesolutions.com
 * extras: mirrors.usc.edu
base                                                                                                                                   | 1.1 kB     00:00
updates                                                                                                                                |  951 B     00:00
centosplus                                                                                                                             |  951 B     00:00
addons                                                                                                                                 |  951 B     00:00
extras                                                                                                                                 | 1.1 kB     00:00
Excluding Packages in global exclude list
Finished
Reducing CentOS-5 - Extras to included packages only
Finished
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package mono-complete.i586 0:1.9.1-2.novell set to be updated
--> Processing Dependency: mono-nunit = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-extras = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-data = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-data-firebird = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: bytefx-data-mysql = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-locale-extras = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-data-oracle = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-data-sybase = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-winforms = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-data-sqlite = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-jscript = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-web = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-data-postgresql = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-devel = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: ibm-data-db2 = 1.9.1-2.novell for package: mono-complete
--> Processing Dependency: mono-core = 1.9.1-2.novell for package: mono-complete
--> Running transaction check
---> Package mono-web.i586 0:1.9.1-2.novell set to be updated
---> Package mono-data.i586 0:1.9.1-2.novell set to be updated
---> Package mono-data-firebird.i586 0:1.9.1-2.novell set to be updated
---> Package mono-core.i586 0:1.9.1-2.novell set to be updated
--> Processing Dependency: libgdiplus0 for package: mono-core
---> Package mono-nunit.i586 0:1.9.1-2.novell set to be updated
---> Package mono-devel.i586 0:1.9.1-2.novell set to be updated
--> Processing Dependency: glib2-devel for package: mono-devel
---> Package mono-data-sybase.i586 0:1.9.1-2.novell set to be updated
---> Package mono-data-postgresql.i586 0:1.9.1-2.novell set to be updated
---> Package mono-jscript.i586 0:1.9.1-2.novell set to be updated
---> Package mono-data-sqlite.i586 0:1.9.1-2.novell set to be updated
---> Package bytefx-data-mysql.i586 0:1.9.1-2.novell set to be updated
---> Package mono-data-oracle.i586 0:1.9.1-2.novell set to be updated
---> Package ibm-data-db2.i586 0:1.9.1-2.novell set to be updated
---> Package mono-locale-extras.i586 0:1.9.1-2.novell set to be updated
---> Package mono-extras.i586 0:1.9.1-2.novell set to be updated
---> Package mono-winforms.i586 0:1.9.1-2.novell set to be updated
--> Running transaction check
---> Package libgdiplus0.i386 0:1.9-1.rhel4.novell set to be updated
--> Processing Dependency: libXrender.so.1 for package: libgdiplus0
--> Processing Dependency: libungif.so.4 for package: libgdiplus0
--> Processing Dependency: libexif.so.9 for package: libgdiplus0
---> Package glib2-devel.i386 0:2.12.3-4.el5_3.1 set to be updated
--> Running transaction check
---> Package libXrender.i386 0:0.9.1-3.1 set to be updated
---> Package libgdiplus0.i386 0:1.9-1.rhel4.novell set to be updated
--> Processing Dependency: libexif.so.9 for package: libgdiplus0
---> Package giflib.i386 0:4.1.3-7.1.el5_3.1 set to be updated
--> Finished Dependency Resolution
libgdiplus0-1.9-1.rhel4.novell.i386 from mono has depsolving problems
  --> Missing Dependency: libexif.so.9 is needed by package libgdiplus0-1.9-1.rhel4.novell.i386 (mono)
Error: Missing Dependency: libexif.so.9 is needed by package libgdiplus0-1.9-1.rhel4.novell.i386 (mono)

According to this post on the CentOS forums, I even enabled the centosplus repo - but no avail.

Can anyone guide me in resolving this missing dependency of libexif.so.9 ? I cannot seem to find the rpm for this exact version...

Thanks,
m^e

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光匆匆的小流年 2024-08-14 07:56:02

编辑:
我刚刚意识到您正在使用 CentOS 4 源代码,但试图在 CentOS 5 上安装。这几乎肯定是您的问题。不管怎样,为了所有人的利益,我在下面留下了我原来的答案。

我同意这是一个 ServerFault 的事情:

百胜安装 libexif

百胜安装 exif

更重要的是,我肯定会自己从源代码编译 Mono,以便您可以使用更新的东西。这是一件轻而易举的事(特别是当你安装了 libgdiplus 后)。我在 CentOS 5 上做过很多次,在 CentOS 4 上做过几次。

http://ftp .novell.com/pub/mono/sources/

编译 libgdiplus 以支持 System.Drawing:

$ tar xzf libgdiplus-2.10.tar.gz
$ cd libgdiplus-2.10
$ ./configure
$ make
$ make install

然后编译 Mono 本身:

$ tar xzf mono-2.10.tar.gz
$ cd mono-2.10
$ ./configure
$ make
$ make install

EDIT:
I just realized that you are using CentOS 4 sources but trying to install on CentOS 5. That was almost certainly your problem. Anyway, I leave my original answer below for the benefit of all.

I agree that this is a ServerFault thing:

yum install libexif

or

yum install exif

More importantly, I would definitely compile Mono from source myself so that you can use something newer. It is a breeze (once you get libgdiplus installed especially). I have done it many times on CentOS 5 and a few times on CentOS 4.

http://ftp.novell.com/pub/mono/sources/

Compile libgdiplus to support System.Drawing:

$ tar xzf libgdiplus-2.10.tar.gz
$ cd libgdiplus-2.10
$ ./configure
$ make
$ make install

Then compile Mono itself:

$ tar xzf mono-2.10.tar.gz
$ cd mono-2.10
$ ./configure
$ make
$ make install
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文