如何用PHP 5.5在Debian 7上安装php5-memcached?
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了如何用PHP 5.5在Debian 7上安装php5-memcached?,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含3084字,纯文字阅读大概需要5分钟。
内容图文
![如何用PHP 5.5在Debian 7上安装php5-memcached?](/upload/InfoBanner/zyjiaocheng/738/bc25bdc8f4c94c76a2eb0ae98c443640.jpg)
我在Debian 7 VirtualBox VM上安装PHP 5 Memcached模块的尝试失败了:
root@testvm:~# 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.
我也无法在Synaptic Package Manager上安装它.
我猜,问题可能在于/etc/apt/sources.list中缺少的源信息.
更新:
的/etc/apt/sources.list
# deb cdrom:[Debian GNU/Linux 7.1.0 _Wheezy_ - Official amd64 NETINST Binary-1 20130615-23:04]/ wheezy main
# deb cdrom:[Debian GNU/Linux 7.1.0 _Wheezy_ - Official amd64 NETINST Binary-1 20130615-23:04]/ wheezy main
deb http://ftp.de.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.de.debian.org/debian/ wheezy main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
# wheezy-updates, previously known as 'volatile'
deb http://ftp.de.debian.org/debian/ wheezy-updates main contrib non-free
deb-src http://ftp.de.debian.org/debian/ wheezy-updates main contrib non-free
# nginx
deb http://packages.dotdeb.org wheezy all
deb-src http://packages.dotdeb.org wheezy all
# PHP 5.5
deb http://packages.dotdeb.org wheezy-php55 all
deb-src http://packages.dotdeb.org wheezy-php55 all
更新:
我尝试手动安装缺少的依赖项,但它也不起作用:
root@devvm:~# apt-get install libmemcached11
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libmemcached11 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libmemcached11' has no installation candidate
更新:
root@devvm:~# apt-cache depends php5-memcached libmemcached10
php5-memcached
Depends: libc6
Depends: <libmemcached11>
Depends: zlib1g
Depends: <phpapi-20121212>
libapache2-mod-php5filter
libapache2-mod-php5
libphp5-embed
php5-cgi
php5-cli
php5-fpm
Depends: php5-common
|PreDepends: dpkg
PreDepends: <dpkg-maintscript-helper>
libmemcached10
Depends: libc6
Depends: libgcc1
Depends: libstdc++6
PreDepends: multiarch-support
Conflicts: <libmemcached2>
Conflicts: <libmemcached3>
Conflicts: <libmemcached6>
Conflicts: <libmemcached9>
解决方法:
要解决您的问题,您只需将以下内容添加到sources.list:
# Wheezy
deb http://ftp.hosteurope.de/mirror/packages.dotdeb.org/ wheezy all
deb-src http://ftp.hosteurope.de/mirror/packages.dotdeb.org/ wheezy all
# Wheezy-php55
deb http://ftp.hosteurope.de/mirror/packages.dotdeb.org/ wheezy-php55 all
deb-src http://ftp.hosteurope.de/mirror/packages.dotdeb.org/ wheezy-php55 all
实际上,缺少的依赖项(libmemcached11)存在于dotdeb存储库的wheezy发行版中.
内容总结
以上是互联网集市为您收集整理的如何用PHP 5.5在Debian 7上安装php5-memcached?全部内容,希望文章能够帮你解决如何用PHP 5.5在Debian 7上安装php5-memcached?所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。