安装 curl-devel 时的依赖问题

安装 curl-devel 时的依赖问题

我正在尝试运行,passenger-install-apache2-module以便在 CentOS 5.8 上安装 Redmine,但是passenger-install-apache2-module告诉我我需要Curl development headers with SSL support,它告诉我可以使用来安装yum install curl-devel,但是,当我运行它时,我得到以下结果:

Loaded plugins: fastestmirror, priorities, protectbase
Loading mirror speeds from cached hostfile
 * base: ftp.pbone.net
 * extras: ftp.pbone.net
 * remi: remi-mirror.dedipower.com
 * updates: ftp.pbone.net
120 packages excluded due to repository priority protections
0 packages excluded due to repository protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package curl-devel.i386 0:7.15.5-15.el5 set to be updated
--> Processing Dependency: curl = 7.15.5-15.el5 for package: curl-devel
--> Finished Dependency Resolution
curl-devel-7.15.5-15.el5.i386 from base has depsolving problems
  --> Missing Dependency: curl = 7.15.5-15.el5 is needed by package curl-devel-7.15.5-15.el5.i386 (base)
Error: Missing Dependency: curl = 7.15.5-15.el5 is needed by package curl-devel-7.15.5-15.el5.i386 (base)
 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

现在我对 Linux 的东西并不熟悉,但是,我认为这告诉我,如果我想安装 curl-devel,我需要版本 curl(有道理)。但我知道我已经安装了 curl,并且我确实测试了curl -V它是否真的安装了,这给了我:

curl 7.21.7 (i686-redhat-linux-gnu) libcurl/7.21.7 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 libssh2/1.2.7
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

所以我认为问题在于版本的差异,但是,我不知道下一步该怎么办。

所以我的问题是,如何正确安装 curl-devel?

顺便说一句:我确实尝试了 yum 最后告诉我的方法:

 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

答案1

您需要相同版本的 curl-devel 和 curl。软件包 transitor-install-apache2-module 需要 curl-devel 的版本 7.15.5-15.el5,因此您需要将 curl 更新到版本 7.15.5-15.el5。您已安装更高版本的 curl 软件包,版本为 7.21.7。

您的服务器使用 rpmbone 作为存储库,此存储库包含 curl 版本 7.15.5-15.el5。这些是软件包网址:ftp.centos.org/5.8/os/x86_64/CentOS/curl-7.15.5-15.el5.x86_64.rpm ftp.centos.org/5.8/os/i386/CentOS/curl-7.15.5-15.el5.i386.rpm

如果 curl.7.21.7 不是其他软件包的依赖项,则可以尝试删除它,然后使用命令“yum install curl-7.15.5-15 curl-devel--7.15.5-15”安装 curl 和 curl-devel 7.15.5-15

相关内容