在Windows上安装APC [英] Install APC on Windows
问题描述
如何在Windows上安装APC?我正在使用PHP 5.3,Windows 7 x64.
How can I install APC on Windows? I am using PHP 5.3, Windows 7 x64.
我用过
pecl install apc
我知道了
C:\PHP>pecl install apc
downloading APC-3.0.19.tgz ...
Starting to download APC-3.0.19.tgz (115,735 bytes) ............
done: 115,735 bytes 47 source files, building
WARNING: php_bin c:\php\php.exe appears to have a suffix \php.exe, but config
variable php_suffix does not match running: msdev APC.dsp /MAKE "APC - Release"
ERROR: Did not understand the completion status returned from msdev.exe.
推荐答案
使用pecl
命令安装扩展程序意味着:
Installing an extension with the pecl
command means :
- 下载源代码
- 编译它们
通常来说,Windows机器不需要编译PHP和/或PHP扩展之类的软件.
And, generally speaking, a windows machine doesn't have what's required to compile software like PHP and/or PHP extensions.
在您的情况下,更好/更轻松的解决方案可能是找到与您的系统和PHP版本匹配的扩展的预编译.dll
.
A better / easier solution, in your case, would probably be to find a pre-compiled .dll
of the extension, that matches your system and your version of PHP.
幸运的是,也许 http://downloads.php.net/上提供的版本之一pierre/可以吗?
(这是替换旧pecl4win的一种方式,直到windows的扩展名在windows.php.net上可用为止)
With a bit of luck, maybe one of the versions provided on http://downloads.php.net/pierre/ could be OK ?
(It's what kind of acts as replacement of the old pecl4win, until the extensions for windows are available on windows.php.net)
有关应使用哪个版本的更多信息,请查看我选择哪个版本?部分,位于 http://windows.php.net/
For more informations about which version you should use, take a look at the Which version do I choose? section, in the left side-bar of http://windows.php.net/
这篇关于在Windows上安装APC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!