tags:

views:

1014

answers:

1

How can I install APC on Windows? I am using PHP 5.3, Windows 7 x64.

I used

pecl install apc

I got

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.
+1  A: 

Installing an extension with the pecl command means :

  • downloading the sources
  • compiling them

And, generally speaking, a windows machine doesn't have what's required to compile software like PHP and/or PHP extensions.


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.

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)

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/

Pascal MARTIN
how do i install it then?
jiewmeng