安裝 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
您需要相同版本的 curl-devel 和 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 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"