Monday, September 14, 2009

Installing Padre on Windows Vista

Last week, I (re-)installed Padre on my Windows Vista machine. Padre is a development environment geared towards Perl programmers, with a focus on Perl beginners.
I use the Strawberry Perl distribution (5.10.0.6) and read that it was a breeze to install Padre.
Well, it almost is.
I opened the cpan shell (typing cpan in a DOS shell is all it takes if C:\strawberry\perl\bin is in your PATH).
The regular install (install Padre) failed because of a dependency on Wx::Perl::ProcessStream not building. Just force install that module (force install Wx::Perl::ProcessStream) then install Padre (a ticket has already been written for the issue).
It works like a charm, no need to force install Padre anymore!
So if you are a Perl beginner and want to use an editor written in Perl + suited for Perl tasks, you have no excuse anymore.

If you already have Padre and want to update it to version 0.46 released today (September 14th 2009), type upgrade Padre in your cpan shell. Better yet, you can update directly from the Padre Plugins menu: Plugins>Module Tools>Install CPAN Module and type Padre.

3 comments :

  1. I tried out your tip, but wasn't so successful! It fell over on the install of Wx::Perl::ProcessStream:

    cpan> force install Wx::Perl::ProcessStream
    ...
    Failed 55/55 subtests

    Test Summary Report
    -------------------
    t/00-load.t (Wstat: 256 Tests: 1 Failed: 1)
    Failed test: 1
    Non-zero exit status: 1
    t/01-events.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: Bad plan. You planned 55 tests but ran 0.
    Files=2, Tests=1, 0 wallclock secs ( 0.05 usr + 0.02 sys = 0.06 CPU)
    Result: FAIL
    Failed 2/2 test programs. 1/1 subtests failed.
    dmake.EXE: Error code 130, while making 'test_dynamic'
    MDOOTSON/Wx-Perl-ProcessStream-0.22.tar.gz
    C:\strawberry\c\bin\dmake.EXE test -- NOT OK
    //hint// to see the cpan-testers results for installing this module, try:
    reports MDOOTSON/Wx-Perl-ProcessStream-0.22.tar.gz
    Running make install
    Appending installation info to C:\strawberry\perl\lib/perllocal.pod
    MDOOTSON/Wx-Perl-ProcessStream-0.22.tar.gz
    C:\strawberry\c\bin\dmake.EXE install UNINST=1 -- OK
    Failed during this command:
    MBARBON/Alien-wxWidgets-0.46.tar.gz : make NO
    MBARBON/Wx-0.94.tar.gz : writemakefile NO 'C:\strawberry\
    perl\bin\perl.exe Makefile.PL' returned status 65280
    MDOOTSON/Wx-Perl-ProcessStream-0.22.tar.gz : make_test FAILED but failure ign
    ored because 'force' in effect

    Had a search for similar issues, but couldn't find a fix at the moment.

    ReplyDelete
  2. You should go to
    http://padre.perlide.org/download.html
    You can now download standalone msi install files for Windows.

    ReplyDelete
  3. Thanks. I found a fix for installing it with cpan, on a padre wiki page (at the top of which was the links to download the msi, which I didn't see).

    This is an interesting blog for me, as I've just started learning Perl. Keep up the good work!!!

    ReplyDelete