找不到laravel类memcached [英] laravel class memcached not found
问题描述
首先,我已经查看了所有这些内容:
我看到每个人都在谈论安装php5-memcached,但令人震惊的是,当我尝试安装php5-memcached时,我得到了:
运行后的运行情况 sudo apt-get update
!
在进入 sudo服务memcached状态
之后,我什至得到了这个信息:
所有这些之后,当我将CACHE_DRIVER更改为memcached时,它将继续显示此错误:
虽然我仍在为此苦苦挣扎,但对这个家伙有什么想法吗?我将不胜感激!
类 Memcached
也被php 7( http://pecl.php.net/package/memcached
您可能还需要安装 libmemcached
看到此内容- https://launchpad.net/libmemcached/+ download
或者在- StackOverflow 上看到类似的问题
First of all , I have looked at all of these :
and none of them is my case nor has really a soloution.
The problem is that I am developing a website by laravel 5.3.18 and here is the PHP info running on my server:
PHP 7.0.9-2 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.9-2, Copyright (c) 1999-2016, by Zend Technologies
And also here is my server OS info if you need to take a look at:
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux stable-updates (sid)
Release: stable-updates
Codename: sid
I need to change CACHE_DRIVER to memcached in order to use this package(according to what they say in the GitHub issues about fixing the found bug).
Here is where all my problems started.
I have thses memcahed packages installed on my server(listed by dpkg --list):
I see everyone is talking avout installing php5-memcached but shockingly when I try to install php5-memcached I get this:
and tha's after running sudo apt-get update
!
I even get this after entering sudo service memcached status
:
After all of these when I change the CACHE_DRIVER to memcached, it keeps on showing this error:
While I am still struggling with this, Any ideas on this guys? I would be appreciative!
Class Memcached
is also used by php 7 (PHP 7 with memcached)
Check this out - http://pecl.php.net/package/memcached
You may need to also install libmemcached
see this - https://launchpad.net/libmemcached/+download
Or see the similar issue on - StackOverflow
这篇关于找不到laravel类memcached的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!