不能为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.
答案 0 :(得分:0)
请运行此命令并重新安装:
pecl config-set php_suffix "-cgi.exe"