Saturday, February 14, 2009

Installing Padre on Windows via Strawberry Perl

I decided to give Padre a try as a Notepad++ replacement for a Perl development environment, on a suggestion from a reader.
Padre is a work in progress, which is one of the reasons why I would like to get involved in it. The main goal is to look at (and understand) Perl code written by experienced developpers. If I can also contribute in improving the tool, it's all bonus. Plus, it will give me material for this blog :)

Padre installation from CPAN
On the Padre's site, it is written that the installation process is as easy as typing "install Padre" in the cpan shell.
Not in my experience. I had several "Can't locate in @INC" error messages.
At the end of the test report, I received:
Files=20, Tests=534, 61 wallclock secs ( 0.28 usr + 0.11 sys = 0.39 CPU)
Result: FAIL
Failed 10/20 test programs. 142/534 subtests failed.
dmake.EXE: Error code 130, while making 'test_dynamic'
C:\strawberry\c\bin\dmake.EXE test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports SZABGAB/Padre-0.27.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
MBARBON/Wx-0.89.tar.gz : make NO
MDOOTSON/Wx-Perl-ProcessStream-0.11.tar.gz : make_test NO
SZABGAB/Wx-Perl-Dialog-0.04.tar.gz : make_test NO
ADAMK/File-Find-Rule-VCS-1.05.tar.gz : make NO
ADAMK/Module-Inspector-1.05.tar.gz : make_test NO
SZABGAB/Padre-0.27.tar.gz : make_test NO

I ran the reports SZBGAB/Padre-0.27.tar.gz but the result came bask as PASS for MSWin32.
I tried to push my luck with the following command (still in CPAN):

"force install Padre"
and the process went to its end but with the following errors:
Failed during this command:
DANKOGAI/Encode-2.29.tar.gz : make_test FAILED but failure ignored because 'force' in effect
JDHEDDEN/threads-1.71.tar.gz : make_test FAILED but failure ignored because 'force' in effect
MDOOTSON/Wx-Perl-ProcessStream-0.11.tar.gz : make_test FAILED but failure ignored because 'force' in effect

I was able to launch Padre v0.27 by following the instructions from the Padre's site: I created a shortcut with the "C:\strawberry\perl\bin\wperl.exe C:\strawberry\perl\bin\padre" command.

I didn't get to experience much of it because it is getting late and I am going on a trip with my Valentine tomorrow ;)
I still had the time to create a new ticket though...
There'll be more about my impressions on Padre in the posts to come.
When I have played with it a bit and read the docs, I'll start digging in the code.

Larry Wall quote of the day:
"Programmers can be lazy."

Possible next posts:

  • How to install and use Google Analytics on your Blogger blog
  • Improving on using more of the Net::Twitter API
  • Some post about Padre
  • Improving on Graphical User interface
  • Perl help resources
  • POD


  1. I couldn't get Padre to work through ActivePerl either. Padre sounds promising, but I'll just have to see it first! :)

    Please post more, I love your blog, as you seem to have the same learning interests for Perl that I have and at possibly the same level.