perl + eclips
安装eclips
1. 安装Java环境
jre or jdk http://www.oracle.com/technetwork/java/javase/downloads/index.html
2. 解压Eclipse
http://www.eclipse.org/
http://www.eclipse.org/babel/ Language package解压至根目录
tar -zxvf eclipse.tar.gz –C /eclipse 解压即可,无需安装
3. 安装EPIC(Perl IDE, plug-in for Eclipse)
EPIC http://www.epic-ide.org/download.php
Help->Install New Software..-> Work with:http://e-p-i-c.sf.net/updates -> next -finish
或 解压至根目录
4. Windows 需要Perl解释器
Linux 可跳过此步骤
http://www.activestate.com/activeperl/downloads | http://strawberryperl.com/
strawberry 编译cpan下载的padwalker失败,
strawberry 编译、安装成功:
perl makefil.pl && dmake test && dmake install
5. Debug perl need PadWalker
EPIC Error
- http://search.cpan.org/dist/PadWalker/
perl Makefile.PL
make test
make install - 或者yum install cpan
perl -MCPAN -e “install PadWalker” - windows 需要GCC 来编译
http://search.cpan.org/dist/dmake/
dmake nmake.exe cl.exe
设置环境变量
4. 或 activeperl Perl Package Manager –> PadWalker->mark for install->run marked actions
6. 启动
eclipse –nl zh
7. 全局变量
例:
Vim /etc/profile.d/which2.sh
alias eclipse=’/eclipse根目录 /eclipse –nl zh’
source /etc/profile.d/which2.sh
windows 亦可
perl -MConfig -e “print $Config{make}”
it’s not being overridden soon enough - so, in lib/Config_heavy.pl,
try changing:
make=’nmake
to
make=’dmake’