islemonk has asked for the wisdom of the Perl Monks concerning the following question:

I am using Padre 0.94 on MSWin32(XP) and in the Past i installed CPAN packages manually.

But for more complicated packages which are not easily installed manually, i tried to use the install via make but it failed.

C:\Dwimperl\Number-Format-1.73>perl Makefile.PL Writing Makefile for Number::Format Writing MYMETA.yml and MYMETA.json

runs without warning or error, but make stops with error:

C:\Dwimperl\Number-Format-1.73>\Programme\GnuWin32<p><p>\bin\make to undefined at C:/Dwimperl/perl/lib/ExtUtils/Install.pm line 1198 make: *** [pm_to_blib] Fehler 2

obviously $to is undefined (see LINE 1198).

It comes via $fromto as 1.parameter of sub pm_to_blib which i can not trace as i can not start the debug from make.

It's not clear for me why and where it should have been defined.

Therfore i'm asking for advice how to fix this problem.

using Padre 0.94 with perl 5, version 14, subversion 2 (v5.14.2) built for MSWin32-x86-multi-thread

(running on Win XP)

below part of source related to message:

C:\Dwimperl\Number-Format-1.73>\bin\head -n1201 c:/dwimperl/perl/lib/E +xtutils/install.pm|\bin\tail -22 sub pm_to_blib { my($fromto,$autodir,$pm_filter) = @_; _mkpath($autodir,0,0755); while(my($from, $to) = each %$fromto) { <<<< LINE 1184 if( -f $to && -s $from == -s $to && -M $to < -M $from ) { print "Skip $to (unchanged)\n" unless $INSTALL_QUIET; next; } # When a pm_filter is defined, we need to pre-process the sour +ce first # to determine whether it has changed or not. Therefore, only + perform # the comparison check when there's no filter to be ran. # -- RAM, 03/01/2001 my $need_filtering = defined $pm_filter && length $pm_filter & +& $from =~ /\.pm$/; if (!$need_filtering && 0 == compare($from,$to)) { < +<<< LINE 1198 print "Skip $to (unchanged)\n" unless $INSTALL_QUIET; next;
solved:

dmake does the job, just dmake;dmake test;dmake install;

Replies are listed 'Best First'.
Re: installing CPAN with make, undefined $to
by marto (Cardinal) on Nov 19, 2014 at 09:55 UTC

    DWIM perl is based upon Strawberry Perl, which ships with dmake. Is there a reason you aren't using dmake?

    D:\Number-Format-1.73>perl Makefile.PL Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for Number::Format Writing MYMETA.yml and MYMETA.json D:\Number-Format-1.73>dmake cp Format.pm blib\lib\Number\Format.pm

    See also Re: what is difference between dmake and mingw32-make?[OT].