安装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来testing它是否实际安装,这给了我:

 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 

你需要相同版本的curl开发和curl。 包passenger-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。 这些包是url:ftp.centos.org/5.8/os/x86_64/CentOS/curl-7.15.5-15.el5.x86_64.rpm http://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–”来安装curl和curl-devel 7.15.5-15。 7.15.5-15"