本文介绍了如何获取Windows的libmemcached?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows本地主机中安装memcached扩展程序:wamp 64 php 5.5.12.请参阅以下网址的memcached: https://pecl.php.net/package/memcached (请注意,此扩展使用libmemcached库)

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)

不幸的是,此扩展名没有可用的dll.所以我需要自己生成dll.

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

我遵循此指南以生成有效的dll: https://wiki.php .net/internals/windows/stepbystepbuild (即使用Microsoft Visual Studio 2012进行编译)

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:

不幸的是,memcached扩展依赖于'libmemcached库',它不正式支持Windows环境.

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

我遇到了这个git项目. https://github.com/moteus/libmemcached-win32
我不确定该如何处理该源文件,这对我有什么帮助.看来,这个git项目是一个libmemcached,可以在Windows中使用(据我所知)

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)

这个github项目是一个现成的libmemcached库吗(如果是,那么memcached.lib在哪里?)?或如何从此页面生成memcached.lib文件? (或任何可以帮助我为memcached扩展程序创建有效的dll的东西)

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!!

推荐答案

vs2015 lib + dll 1.0.18可用:

There is vs2015 lib+dlls 1.0.18 available:

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

vcxproj也可用,因此您可以将其编译为其他版本的msvc.Launchpad上的win32分支非常老,并且具有与1.0版本不同的api.

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.

这篇关于如何获取Windows的libmemcached?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 16:53