在Debian 9 Docker容器上安装php-memcached

问题描述

有人可以建议如何在Debian 9 + PHP 7.3容器上安装php-memcached吗?

我正在使用Docker PHP image创建一个Drupal 9项目。

我已将Memcached安装到容器中。

我现在的挑战是为Drupal(或任何其他php应用程序)安装php映射的扩展程序,以与Memcache进行通信。

尝试安装php-memcache会导致以下错误:

root@f217bb6f0b43:/tmp/memcached-2.1.0# apt-get install php7-memcached -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7-memcached

root@f217bb6f0b43:/tmp/memcached-2.1.0# apt-get install php-memcached -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php-memcached 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 'php-memcached' has no installation candidate

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...