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;


In reply to Padre doesn't install CPAN with make, undefined $to (solved use dmake) by islemonk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.