Eclipse下配置Perl-EPIC开发环境

前言

Perl脚本在处理字符串的时候非常方便和高效,平时学习工作的时候经常用到,所以在电脑里配置Perl的开发环境还是很必要的。今天把Perl EPIC在Eclipse下的配置过程记录下来,方便自己以后换机或者在工作的时候配置环境使用。

更新

  • 2016-05-11: 在window10/JDK8/ActivePerl5.22.1环境下安装EPIC

下载

EPIC官网 官方网站,在里面简单看下安装环境需求。

  • Eclipse
    Before installing the EPIC plug-in Eclipse version 3.6 or higher has to be installed. Eclipse can be downloaded from www.eclipse.org.
  • Perl
    In order to have all EPIC features like Syntax Checking, Source Formatting etc. a Perl interpreter is needed. In principle any Perl interpreter can be used. EPIC works with the following versions of Perl: 5.10.x, 5.8.x (best tested) and 5.6.x (no longer tested and not recommended).
  • PadWalker
    If you wish to use the debugger, make sure that the Perl module PadWalker, version 1.0 or later, is installed as part of your Perl distribution.

这里明确讲了Eclipse, Perl, PadWalker的版本信息

安装EPIC

  • 启动Eclipse,Eclipse中, 点击Help->Install New Software…
  • 在弹出的对话框中, 点Add 按钮。Name中填:EPIC, Location中填http://e-p-i-c.sf.net/updates/testing

Eclipse下配置Perl-EPIC开发环境_第1张图片

下一步:

Eclipse下配置Perl-EPIC开发环境_第2张图片

安装PadWalker

打开Perl Package Manager后,

  • 点击view菜单 all packages 按钮(默认只显示安装过的perl包),然后在输入框输入padwalker后按回车;
  • 显示padwalker;
  • padwalker上点击右键,install安装;
  • 点击file菜单run marked actions按钮;

安装完padwalker后,在Eclipse Perl插件里就可以调试Perl代码。

安装检查

这里就要在eclipse里新建一个Perl项目,测试是否安装成功。

  • 启动Eclipse, 创建一个新的项目, File->New->Projects… 选择Perl->Perl Projects 输入项目名称PlProject.

Eclipse下配置Perl-EPIC开发环境_第3张图片

在PlProject上右键,新建Test.pl.

然后在Test.pl下面输入:

print "hello world!";

Eclipse下配置Perl-EPIC开发环境_第4张图片

参考

  • EmanLee的博客
  • EPIC官网

你可能感兴趣的:(开发环境配置)