使用eclipse在xampp上执行perl

时间:2014-01-21 05:55:14

标签: eclipse perl xampp

我已经在我的eclipse kepler上安装了EPIC插件,它安装在目录C:\xampp中 但是当我从日食中创建一个新项目时,当我尝试执行它时,我会在下面的屏幕截图中收到以下错误

enter image description here

任何人都可以帮助我..

1 个答案:

答案 0 :(得分:1)

你的问题是Shebang。您使用Windows和Xampp Server,因此您需要在Shebang中说Perlinterpreter位于#!"C:\xampp\perl\bin\perl.exe"

之下

所以你的所有脚本都需要以

开头
#!"C:\xampp\perl\bin\perl.exe"

而不是

#!/usr/bin/perl

编辑:

例如,您可以尝试检查C:\xampp\cgi-bin\

下的文件