how can i get libmemcached for windows?

断了今生、忘了曾经 提交于 2019-12-06 09:05:13

问题


i'm trying to install the memcached extension in my windows localhost: wamp 64 php 5.5.12. see memcached at: https://pecl.php.net/package/memcached (notice that This extension uses libmemcached library)

unfortunately there is not a ready dll for this extension.. so i need to produce the dll myself.

i followed this guide in order to produce a working dll: https://wiki.php.net/internals/windows/stepbystepbuild (im using Microsoft Visual Studio 2012 to compile)

i get an error when i try to configure (just before the build). here is the print screen error that i get:

unfortunately the memcached extension is depended on 'libmemcached library' which do not officially support windows environment.

i came across this git project. https://github.com/moteus/libmemcached-win32
im not sure what can i do with that source file and how can that help me. it seems that this git project is a libmemcached ready to work in windows (for all i know)

do this github project is a ready libmemcached library (if so where is the memcached.lib?)? or how can i produce from this page a memcached.lib file? (or anything that will help me make a working dll for the memcached extension)

would deeply appreciate any help on this. thanks!!


回答1:


There is vs2015 lib+dlls 1.0.18 available:

https://github.com/yshurik/libmemcached-win/releases/tag/1.0.18

Also vcxproj is availbale so you can compile it for other versions of msvc. win32 branch on launchpad is extremely old and has different api from 1.0 version.




回答2:


Apparently there is a libmemcached for windows. From the memcached website:

https://code.launchpad.net/~mattn/libmemcached/libmemcached-win32



来源:https://stackoverflow.com/questions/41577987/how-can-i-get-libmemcached-for-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!