问题
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?
回答1:
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
works everywhere, but memcached
only builds on Linux/Mac OSX .
You may be able to build memcached
PECL extension, but none currently exist.
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.
来源:https://stackoverflow.com/questions/29497463/class-memcached-not-found-php-5-4-9-windows-7