找不到类'Memcached'-(php 5.4.9,windows 7) [英] Class 'Memcached' not found-(php 5.4.9,windows 7)
问题描述
我在Windows 7(64位计算机)上安装了php-5.4.9(32位),并将其配置为以php-fpm进程运行.我需要为我的Web应用程序使用memcached,因此在php \ ext文件夹中安装了memcached守护程序和必需的dll文件.但是,当我尝试运行Web应用程序文件夹时,总是出现Class Memcached not found错误.我尝试使用Google搜索,还提到了一些stackoverflow,但找不到解决我问题的方法.
I installed php-5.4.9(32 bit) on my windows 7 (64 bit machine) and configured it to run as a php-fpm process. I need memcached for my web application and hence installed memcached daemon and the necessary dll file in my php\ext folder. But when I try to run my web application folder I always get Class Memcached not found error. I tried googling and also referred to some stackoverflow but couldn't find the solution to my problem.
有人可以帮助我了解我在做什么错吗?
Can somebody please help me understand what I am doing wrong?
推荐答案
memcached
PECL扩展是基于libmemcached
构建的,它具有libevent
要求.
memcache
PECL扩展是基于较早的内存缓存规范构建的,但未基于任何库构建.
memcached
PECL extension is built on libmemcached
, which has a libevent
requirement.
memcache
PECL extension is built off an older spec of memcache, but not built on any lib.
memcache
在任何地方都可以使用,但是memcached
仅在Linux/Mac OSX上构建.
memcache
works everywhere, but memcached
only builds on Linux/Mac OSX .
您也许可以构建memcached
PECL扩展名,但是目前不存在.
You may be able to build memcached
PECL extension, but none currently exist.
如果这是为了开发,也许像Vagrant这样为自己提供Linux虚拟服务器.如果以后要使用Linux服务器,这将允许您运行开发.
If this is for development, maybe something like Vagrant to give yourself a Linux virtual server. This will allow you to run your development if your going to be using a Linux server later.
这篇关于找不到类'Memcached'-(php 5.4.9,windows 7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!