我在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>
帮我解决上述问题。
提前致谢!!
此致 Shreeram
答案 0 :(得分:1)
该模块已损坏。寻找替代方案。
自2008年以来,它还没有更新,并且不再与任何当前版本的PHP兼容。