我已经在 Eclipse 中安装了 Epic 来运行 perl 脚本。不幸的是,我在尝试运行脚本时收到以下错误。
Failed to execute command line: "perl" "-v"
Cannot run program "perl" (in directory "."): CreateProcess error=2, The system cannot find the file specified
当我尝试在命令提示符中运行“perl -v”时,它在我安装 Epic 的那天工作正常。重新启动后,该命令不起作用,文件夹 C:\Dwimperl
变为空。
- 注意:即使在我安装 Epic 的当天,该脚本也没有运行,并且在 Eclipse 中显示了相同的错误。
I am using Windows 7, Eclipse Luna Release 2(4.4.2), and Perl 5 (before restart, now deleted)
These are the contents of my System PATH
E:\app\mevenk\product\12.1.0\dbhome_1\bin
C:\ProgramData\Oracle\Java\javapath
%SystemRoot%\system32
%SystemRoot%
%SystemRoot%\System32\Wbem
%SYSTEMROOT%\System32??\WindowsPowerShell\v1.0\
C:\Program Files (x86)\Sony\VAIO Startup Setting Tool
%JAVA_HOME%\
C:\Program Files (x86)\QuickTime\QTSystem\
C:\Program Files (x86)\Skype\Phone\
%M2_HOME%\bin
最佳答案
如果尚未完成,您需要在 eclipse perl EPIC 首选项中设置 Perl 解释器的完整路径:
例如在我的 Eclipse 中我有:
窗口 -> 首选项 -> Perl EPIC -> Perl 可执行文件 = "C:\DEV\TOOLS\perl\perl\bin\perl.exe"
关于eclipse - Epic ( Eclipse ) Perl 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29981432/