EPIC with Eclipse on Vista
Posted: November 23rd, 2008 | Author: amyjiangsu | Filed under: Technology | 2 Comments »I had experience of using eclipse on Linux platform for a small python project but I had never used it on Windows platform in the past. Anyway, I must set up a perl IDE on Windows thes days, and I chose to use EPIC with Eclipse.
To start with I did a lot of google search, as I always do, to find technical documents. There are a lot of documents avaiable, but most of them are actually on Linux platform. People who don’t have linux experience are likely to get confused, as platform were not even mentioned in many documents. Some documents even give wrong information… I am a bit surprised on how incomplete and inaccurate these documents are when it gets to Windows platform.
I put together this document for users like me, who prefers Linux environment but has to run open source applications on Windows for mysterious reasons. This is how I implemented the Perl IDE with Eclipse on Vista:
I downloaded Eclipse Ganymede here: http://www.eclipse.org/downloads/. There are several different package availables, considering JAVA is required by EPIC and J2EE is widely used, I downloaded the first one on the list: Eclipse IDE for Java EE Developers
The installation is not to install. Just unzip the downloaded file to a file folder will suffice. Double click the Eclips.exe under Eclipse folder will start the engine. I put a shortcut on desktop to make things easier.
Next step is to install Active Perl, the perl intepretor on Windows. Installation file to be downloaded here: http://www.activestate.com/store/productdetail.aspx?prdGuid=81fbce82-6bd5-49bc-a915-08d58c2648ca
Type perl -v in Windows command console, you should be seeing this if the installation is successful:
This is perl, v5.8.8 built for MSWin32-x86-multi-thread
(with 12 registered patches, see perl -V for more detail)
Copyright 1987-2007, Larry Wall
Binary build 824 [287188] provided by ActiveState http://www.ActiveState.com
Built Sep 3 2008 11:14:55
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Now we have got Perl interpretor, we are ready to get EPIC now.
The EPIC website http://www.epic-ide.org/download.php looks like a creditable site and I trust what it said on its download page is all true:
After starting Eclipse select Help > Software Updates... from the menu and switch to the Available Software tab. Click the Add Site... button and enter:
http://e-p-i-c.sf.net/updates for the stable 0.5.x, older version of EPIC
http://e-p-i-c.sf.net/updates/testing for the most recent 0.6.x version
Unfortunately I believes the repository is only made for unix like platform – it worked on my Linux but not for Windows. For offline installation the plugin can be downloaded here: http://sourceforge.net/project/showfiles.php?group_id=75859
After finished the installation, start Eclipse, go Window->Open Perspective->Others, if you see the blue Perl camel on the list there, the installation was successful.
The last thing is to get PadWalker – the debugging module for EPIC. It can only be installed through PPM. PPM comes with Active Perl, it stands for Perl Package Manager – obviously the name explains what it does. As a linux user I have used CPAN in the past, which is also availble on windows plaform. The major difference between CPAN and PPM are (learned in my experience):
1. Different repositories. PPM has windows-specific repository called ActiveState: http://ppm4.activestate.com/MSWin32-x86/5.8.824/package.xml, while CPAN doesn’t.
2. Different compilers. PPM doesn’t use perl compiler on Windows. To make CPAN work on windows, I must install NMAKE.EXE in order to make install a perl package in CPAN reponsitory. You can download NMAKE 1.5 here: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q132084
3. CPAN can detect proxy automatically to download package/package list, while PPM can’t. If you connect internet using a proxy, then an environment variable must be added in Windows: HTTP_Proxy = proxyaddress:proxyport. I must say this is a bit annoying, as when I changed to another network environment I always found PPM not working… figured out it was the HTTP_Proxy variable problem, changed variable, then must restart computer to take effect – some precious time is wasted this way.
Anyway, start ppm from windows command line by typing “PPM”. If you have got the windows repository configured right (as in above), and the internet configuration is right, you should be able to find PadWalker package by typing “padwalker” in the search bar. Once found the package in package list, mark it for installation, and commit. The package will be installed in no time.
Voila! Now you can write some serious Perl code in Eclipse IDE, all on Windows.
