Answer the question
In order to leave comments, you need to log in
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
Try installing the stable version:sudo apt-get -t stable install php5-memcached
And this is all because you need php5-memcache, not php5-memcached.
You mixed up the name of the package.
First lib, then extension to php.apt-get install memcached php5-memcached
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 =)
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question