R
R
radiolip2014-12-10 21:02:16
linux
radiolip, 2014-12-10 21:02:16

How to install memcached on Debian 7?

I install via ssh with the command sudo apt-get install php5-memcached
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php5-memcached : Depends: libmemcached11 but it is not installable
E: Unable to correct problems, you have held broken packages.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
V
Vadim Zarazhevsky, 2014-12-10
@Chelbeh

Try installing the stable version:
sudo apt-get -t stable install php5-memcached

E
Ergil Osin, 2014-12-10
@Ernillew

And this is all because you need php5-memcache, not php5-memcached.
You mixed up the name of the package.

E
Eugene, 2014-12-10
@Nc_Soft

First lib, then extension to php.
apt-get install memcached php5-memcached

V
Vlad Zhivotnev, 2014-12-11
@inkvizitor68sl

So you decide first what you need:
php.net/manual/ru/intro.memcache.php
php.net/manual/ru/intro.memcached.php
And if you still need php5-memcached, then install the current version for wheezy, not hell those whose version is from the left repository.
Now the current version of php5-memcached=2.0.1-6 is in wheezy, it depends on libmemcached10, which is lying around in wheezy's main - there are no problems with them.
Accordingly,
apt-get install php5-memcached=2.0.1-6
But it is likely that you still need php5-memcache =)

S
sannek8552, 2015-09-04
@sannek8552

Ok it seems there is in fact a php5-memcached on dotdeb and it's that which requires libmemcached11.
That's in the main wheezy repository there, which you can add with the following sources.list lines

deb http://packages.dotdeb.org wheezy all
deb-src http://packages.dotdeb.org wheezy all

From: https://www.reddit.com/r/debian/comments/1rmz2e/ho...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question