安装内存缓存时出错

error when installing memcache

我正在使用此命令安装内存缓存(它不适用于其他扩展)

C:\php>pecl install memcache

结果是:

downloading memcache-2.2.7.tgz ...
Starting to download memcache-2.2.7.tgz (36,459 bytes)
..........done: 36,459 bytes
11 source files, building
WARNING: php_bin C:\php\php.exe appears to have a suffix .exe, but config variable p
fix does not match
ERROR: The DSP memcache.dsp does not exist.

我总是遇到这个错误

ERROR: The DSP memcache.dsp does not exist.

我该怎么办?

不要尝试从 windows 上的源代码编译它,而是从 http://pecl.php.net/package/memcache

获取预编译的 .dll 文件

您需要具有 visual studio 的完整开发环境才能从源代码编译扩展。这可能不是你想要的。