解决有关在 strawberry perl 上安装 PHP::Interpreter 模块的问题

Resolving issues regarding installation of PHP::Interpreter module on strawberry perl

我在 strawverry perl 的 cpan 客户端上安装 PHP::Interpreter 时遇到了这个问题。


cpan> install PHP::Interpreter
Database was generated on Tue, 02 May 2017 06:44:13 GMT

Running install for module 'PHP::Interpreter'
Checksum for C:\STRAWB~1\cpan\sources\authors\id\A\AF\AFF\PHP-Interpreter-1.0.2.tar.gz ok
Scanning cache C:\STRAWB~1\cpan\build for sizes
............................................................................DONE
Configuring A/AF/AFF/PHP-Interpreter-1.0.2.tar.gz with Makefile.PL
using php_config 'php-config'
'php-config' is not recognized as an internal or external command,
operable program or batch file.
Failed to find the 'php-config' executable. Make sure you have PHP and PHP sources installed, and that 'php-config' is in PATH. at Makefile.PL line 55.
Warning: No success on command[C:\Strawberry\perl\bin\perl.exe Makefile.PL]
  AFF/PHP-Interpreter-1.0.2.tar.gz
  C:\Strawberry\perl\bin\perl.exe Makefile.PL -- NOT OK
Stopping: 'install' failed for 'PHP::Interpreter'.
Failed during this command:
 AFF/PHP-Interpreter-1.0.2.tar.gz             : writemakefile NO 'C:\Strawberry\perl\bin\perl.exe Makefile.PL' returned status 256

也尝试再次安装,出现类似如下所示的错误


cpan> install PHP::Interpreter
Running install for module 'PHP::Interpreter'
  AFF/PHP-Interpreter-1.0.2.tar.gz
  Has already been unwrapped into directory C:\STRAWB~1\cpan\build\PHP-Interpreter-1.0.2-1
  AFF/PHP-Interpreter-1.0.2.tar.gz
  'C:\Strawberry\perl\bin\perl.exe Makefile.PL' returned status 256, not re-running

cpan>

帮我解决上面的问题

提前致谢!!

此致, 什里拉姆

那个模块坏了。寻找替代品。

它自 2008 年以来就没有更新过,并且不再与 PHP 的任何当前版本兼容。