1. Install epel Repo
Rpm-uvhHttp://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
2. Install memcache
Yum-y install memcached
The following problems may occur during installation:
--> 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 cocould try using -- skip-broken to work around the problem
You cocould try running: Package-cleanup -- Problems
Package-cleanup -- dupes
Rpm-va -- nofiles -- nodigest
The program package-cleanup is found in the Yum-utils package.
This problem is because centos Yum does not have the latest Perl-net-ssleay and Perl-io-socket-SSL packages required by memcached.
The solution is also simple. Delete the old package and install the new package.
View old version packages
Rpm-Qa | grep Perl-net-ssleay
Rpm-Qa | grep Perl-io-socket-SSL
Remove and install a new package
Rpm e perl-Net-SSLeay-1.30-4.fc6
Rpm e perl-IO-Socket-SSL-1.01-1.fc6
WgetHttp://packages.sw.be/perl-Net-SSLeay/perl-Net-SSLeay-1.36-1.el5.rfx.i386.rpm
WgetHttp://packages.sw.be/perl-Net-SSLeay/perl-Net-SSLeay-1.36-1.el5.rfx.x86_64.rpm
WgetHttp://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
Then run the installation command.
Yum-y install memcached
The installation is successful.
3. Set it to boot
Chkconfig -- level 2345 memcached on
4. Start and Stop
/Etc/init. d/memcached START | stop
From: http://www.cnblogs.com/jiunadianshi/articles/2001305.html
1. Install epel Repo
Rpm-uvhHttp://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
2. Install memcache
Yum-y install memcached
The following problems may occur during installation:
--> 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 cocould try using -- skip-broken to work around the problem
You cocould try running: Package-cleanup -- Problems
Package-cleanup -- dupes
Rpm-va -- nofiles -- nodigest
The program package-cleanup is found in the Yum-utils package.
This problem is because centos Yum does not have the latest Perl-net-ssleay and Perl-io-socket-SSL packages required by memcached.
The solution is also simple. Delete the old package and install the new package.
View old version packages
Rpm-Qa | grep Perl-net-ssleay
Rpm-Qa | grep Perl-io-socket-SSL
Remove and install a new package
Rpm e perl-Net-SSLeay-1.30-4.fc6
Rpm e perl-IO-Socket-SSL-1.01-1.fc6
WgetHttp://packages.sw.be/perl-Net-SSLeay/perl-Net-SSLeay-1.36-1.el5.rfx.i386.rpm
WgetHttp://packages.sw.be/perl-Net-SSLeay/perl-Net-SSLeay-1.36-1.el5.rfx.x86_64.rpm
WgetHttp://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
Then run the installation command.
Yum-y install memcached
The installation is successful.
3. Set it to boot
Chkconfig -- level 2345 memcached on
4. Start and Stop
/Etc/init. d/memcached START | stop
From: http://www.cnblogs.com/jiunadianshi/articles/2001305.html