Steps, problems, and solutions for installing memcached through yum in centos 5.5

Source: Internet
Author: User
Tags epel repo

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
Wget
Http://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
Wget
Http://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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.