【发布时间】:2014-05-27 03:52:41
【问题描述】:
无法为 win8 安装 pnupg 扩展:php 5.4 (x86)。
我已经安装了这个http://files.gpg4win.org/gpg4win-2.2.1.exe 比尝试安装php扩展:
C:\Program Files (x86)\PowerCmd>pecl install gnupg
downloading gnupg-1.3.3.tgz ...
Starting to download gnupg-1.3.3.tgz (19,141 bytes)
......done: 19,141 bytes
5 source files, building
WARNING: php_bin c:\php_5_4\php.exe appears to have a suffix _5_4\php.exe, but config variable php_suffix does not match
ERROR: The DSP gnupg.dsp does not exist.
通过以下方式解决此问题:
C:\Program Files (x86)\PowerCmd>pecl config-set php_suffix .exe
config-set succeeded
没有帮助:
C:\Program Files (x86)\PowerCmd>pecl install gnupg
downloading gnupg-1.3.3.tgz ...
Starting to download gnupg-1.3.3.tgz (19,141 bytes)
......done: 19,141 bytes
5 source files, building
WARNING: php_bin c:\php_5_4\php.exe appears to have a suffix _5_4\php.exe, but config variable php_suffix does not match
ERROR: The DSP gnupg.dsp does not exist.
【问题讨论】: