Epic ( Eclipse ) Perl not working

半城伤御伤魂 提交于 2020-01-04 09:13:05

问题


I have installed Epic in my Eclipse to run perl scripts. Unfortunately, iam getting the below error while trying to run the script.

Failed to execute command line: "perl" "-v"

Cannot run program "perl" (in directory "."): CreateProcess error=2, The system cannot find the file specified

When i tried to run "perl -v" in command prompt, it worked fine on the day i installed Epic. After restarting, the command does not work and the folder C:\Dwimperl became empty.

  • Note : The script did not run and showed the same error in eclipse even on the day i installed Epic.

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

回答1:


If not already done, In the eclipse perl EPIC preferences you need to set the full path to your perl interpreter:

e.g. In my Eclipse I have:

Window -> Preferences-> Perl EPIC-> Perl executable = "C:\DEV\TOOLS\perl\perl\bin\perl.exe"




回答2:


Problem resolved after installing ActivePerl. The problem is with perl Interpreter given with Epic (Dwimperl) which did not set the PATH variables and installables properly.

After installing ActivePerl, Eclipse took its path variables.

C:\Perl64\site\bin;C:\Perl64\bin;

Now, perl scripts working fine in Eclipse.



来源:https://stackoverflow.com/questions/29981432/epic-eclipse-perl-not-working

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!