@radiolip

Как установить memcached на Debian 7?

Устанавливаю чрез ssh командой 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.
  • Вопрос задан
  • 5100 просмотров
Пригласить эксперта
Ответы на вопрос 5
Попробуйте установить стабильную версию:
sudo apt-get -t stable install php5-memcached
Ответ написан
Ernillew
@Ernillew
Администрирую *nix-системы с 1997 года
А это все потому, что вам нужен php5-memcache, а не php5-memcached.
Вы название пакета перепутали.
Ответ написан
@Nc_Soft
Сначала либу, потом рассширение к пхп.
apt-get install memcached php5-memcached
Ответ написан
Комментировать
@inkvizitor68sl
Linux-сисадмин с 8 летним стажем.
Так вы определитесь для начала, что вам нужно:
php.net/manual/ru/intro.memcache.php
php.net/manual/ru/intro.memcached.php

И если всё-же нужен php5-memcached, то ставьте текущую версию для wheezy, а не черт те чью версию из левого репозитория.
Сейчас текущая версия php5-memcached=2.0.1-6 в wheezy, она зависит от libmemcached10, который валяется в main у wheezy - с ними проблем нет.
Соответственно,
apt-get install php5-memcached=2.0.1-6

Но вполне вероятно, что вам всё же php5-memcache нужен =)
Ответ написан
Комментировать
@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...
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы