CentOS 5.5 + memcached がインストールできない

CentOS release 5.5 (Final)
Linux ******** 2.6.18-164.el5xen #1 SMP Thu Sep 3 04:03:03 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

こんな環境下で memcached を yum で導入しようとするとエラーしてインストールがコケます。

Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package memcached.x86_64 0:1.4.5-1.el5.rf set to be updated
–> Processing Dependency: perl(AnyEvent) for package: memcached
–> Processing Dependency: perl(AnyEvent::Socket) for package: memcached
–> Processing Dependency: perl(AnyEvent::Handle) for package: memcached
–> Processing Dependency: perl(YAML) for package: memcached
–> Processing Dependency: perl(Term::ReadKey) for package: memcached
–> Processing Dependency: libevent-1.1a.so.1()(64bit) for package: memcached
—> Package memcached-devel.x86_64 0:1.4.5-1.el5.rf set to be updated
–> Running transaction check
—> Package compat-libevent-11a.x86_64 0:3.2.1-1.el5.rf set to be updated
—> Package perl-AnyEvent.noarch 0:5.240-1.el5.rf set to be updated
–> Processing Dependency: perl(JSON::XS) >= 2.2 for package: perl-AnyEvent
–> Processing Dependency: perl(JSON) >= 2.09 for package: perl-AnyEvent
–> Processing Dependency: perl(EV) >= 3.05 for package: perl-AnyEvent
–> Processing Dependency: perl(Guard) >= 1.02 for package: perl-AnyEvent
–> Processing Dependency: perl(Net::SSLeay) >= 1.33 for package: perl-AnyEvent
—> Package perl-TermReadKey.x86_64 0:2.30-4.el5 set to be updated
—> Package perl-YAML.noarch 0:0.71-1.el5.rf set to be updated
–> Running transaction check
—> Package perl-AnyEvent.noarch 0:5.240-1.el5.rf set to be updated
–> Processing Dependency: perl(Net::SSLeay) >= 1.33 for package: perl-AnyEvent
—> Package perl-EV.x86_64 0:3.9-1.el5.rf set to be updated
–> Processing Dependency: perl(common::sense) for package: perl-EV
—> Package perl-Guard.x86_64 0:1.021-1.el5.rf set to be updated
—> Package perl-JSON.noarch 0:2.17-1.el5.rf set to be updated
—> Package perl-JSON-XS.x86_64 0:2.27-1.el5.rf set to be updated
–> Running transaction check
—> Package perl-AnyEvent.noarch 0:5.240-1.el5.rf set to be updated
–> Processing Dependency: perl(Net::SSLeay) >= 1.33 for package: perl-AnyEvent
—> Package perl-common-sense.x86_64 0:3.0-1.el5.rf set to be updated
–> Finished Dependency Resolution
perl-AnyEvent-5.240-1.el5.rf.noarch from rpmforge has depsolving problems
–> Missing Dependency: perl(Net::SSLeay) >= 1.33 is needed by package perl-AnyEvent-5.240-1.el5.rf.noarch (rpmforge)
Error: Missing Dependency: perl(Net::SSLeay) >= 1.33 is needed by package perl-AnyEvent-5.240-1.el5.rf.noarch (rpmforge)
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

ネット上の情報を探ってみると

yum -y –disablerepo=addons –disablerepo=base –disablerepo=extras –disablerepo=updates install perl-Net-SSLeay

こんな感じで perl-Net-SSLeay を install or update すればいけるとありましたが、どうにもうまくいかず。結論から言えば、 perl-Net-SSLeay をアップデートできればいいわけで、rpm から手動消ししてインストールしました。元データは rpmforge からとってきています。

rpm -e amavisd-new-snmp-2.6.4-4.el5.rf
rpm -e amavisd-new-2.6.4-4.el5.rf
rpm -e spamassassin-3.2.5-1.el5
rpm -e perl-IO-Socket-SSL-1.01-1.fc6
rpm -e perl-Net-SSLeay-1.30-4.fc6

wget http://packages.sw.be/perl-Net-SSLeay/perl-Net-SSLeay-1.36-1.el5.rfx.i386.rpm
wget http://packages.sw.be/perl-Net-SSLeay/perl-Net-SSLeay-1.36-1.el5.rfx.x86_64.rpm
wget http://packages.sw.be/perl-IO-Socket-SSL/perl-IO-Socket-SSL-1.34-1.el5.rfx.noarch.rpm

rpm -i perl-Net-SSLeay-1.36-1.el5.rfx.x86_64.rpm
rpm -i perl-Net-SSLeay-1.36-1.el5.rfx.i386.rpm
rpm -i perl-IO-Socket-SSL-1.34-1.el5.rfx.noarch.rpm

はい、あっさりとインストール完了しました。

========================================================================================================================
Package Arch Version Repository Size
========================================================================================================================
Installing:
memcached x86_64 1.4.5-1.el5.rf dag 80 k
memcached-devel x86_64 1.4.5-1.el5.rf dag 5.9 k
Installing for dependencies:
compat-libevent-11a x86_64 3.2.1-1.el5.rf rpmforge 49 k
perl-AnyEvent noarch 5.240-1.el5.rf rpmforge 351 k
perl-EV x86_64 3.9-1.el5.rf rpmforge 350 k
perl-Guard x86_64 1.021-1.el5.rf rpmforge 39 k
perl-JSON noarch 2.17-1.el5.rf rpmforge 93 k
perl-JSON-XS x86_64 2.27-1.el5.rf rpmforge 150 k
perl-TermReadKey x86_64 2.30-4.el5 epel 32 k
perl-YAML noarch 0.71-1.el5.rf rpmforge 84 k
perl-common-sense x86_64 3.0-1.el5.rf rpmforge 22 k

Transaction Summary
========================================================================================================================
Install 11 Package(s)
Upgrade 0 Package(s)

Total download size: 1.2 M
Downloading Packages:
(1/11): memcached-devel-1.4.5-1.el5.rf.x86_64.rpm | 5.9 kB 00:00
(2/11): perl-common-sense-3.0-1.el5.rf.x86_64.rpm | 22 kB 00:00
(3/11): perl-TermReadKey-2.30-4.el5.x86_64.rpm | 32 kB 00:00
(4/11): perl-Guard-1.021-1.el5.rf.x86_64.rpm | 39 kB 00:00
(5/11): compat-libevent-11a-3.2.1-1.el5.rf.x86_64.rpm | 49 kB 00:00
(6/11): memcached-1.4.5-1.el5.rf.x86_64.rpm | 80 kB 00:00
(7/11): perl-YAML-0.71-1.el5.rf.noarch.rpm | 84 kB 00:01
(8/11): perl-JSON-2.17-1.el5.rf.noarch.rpm | 93 kB 00:00
(9/11): perl-JSON-XS-2.27-1.el5.rf.x86_64.rpm | 150 kB 00:00
(10/11): perl-EV-3.9-1.el5.rf.x86_64.rpm | 350 kB 00:00
(11/11): perl-AnyEvent-5.240-1.el5.rf.noarch.rpm | 351 kB 00:00
————————————————————————————————————————
Total 142 kB/s | 1.2 MB 00:08
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : perl-TermReadKey 1/11
Installing : perl-Guard 2/11
Installing : compat-libevent-11a 3/11
Installing : perl-common-sense 4/11
Installing : perl-JSON-XS 5/11
Installing : perl-EV 6/11
Installing : perl-JSON 7/11
Installing : perl-AnyEvent 8/11
Installing : perl-YAML 9/11
Installing : memcached-devel 10/11
Installing : memcached 11/11

Installed:
memcached.x86_64 0:1.4.5-1.el5.rf memcached-devel.x86_64 0:1.4.5-1.el5.rf

Dependency Installed:
compat-libevent-11a.x86_64 0:3.2.1-1.el5.rf perl-AnyEvent.noarch 0:5.240-1.el5.rf
perl-EV.x86_64 0:3.9-1.el5.rf perl-Guard.x86_64 0:1.021-1.el5.rf
perl-JSON.noarch 0:2.17-1.el5.rf perl-JSON-XS.x86_64 0:2.27-1.el5.rf
perl-TermReadKey.x86_64 0:2.30-4.el5 perl-YAML.noarch 0:0.71-1.el5.rf
perl-common-sense.x86_64 0:3.0-1.el5.rf

Complete!