I'm currently installing a bunch of modules on a fresh Perl 5.8.8 (under Win XP). Some of them (Catalyst, YAML) crash while creating the Makefile.

The modules use Module::Install in the Makefile.pl. I'm not sure where to start looking. Is this a bug in Module::Install?
C:\Perl\cpan\build\YAML-0.58>perl Makefile.PL Undefined subroutine &ActivePerl::Config::find_prog called at C:/Perl/ +site/lib/ActivePerl/Config.pm line 70. Compilation failed in require at C:/Perl/lib/ExtUtils/MakeMaker.pm lin +e 7. BEGIN failed--compilation aborted at C:/Perl/lib/ExtUtils/MakeMaker.pm + line 7. Compilation failed in require at inc/Module/Install/Can.pm - /Users/in +gy/local/lib/perl5/site_perl/5.8.6/Module/Install/Can.pm line 8. BEGIN failed--compilation aborted at inc/Module/Install/Can.pm - /User +s/ingy/local/lib/perl5/site_perl/5.8.6/Module/Install/Can.pm line 8. Compilation failed in require at /Users/ingy/src/ingy/YAML/inc/Module/ +Install.pm - /Users/ingy/local/lib/perl5/site_perl/5.8.6/Module/Insta +ll.pm line 180. Global symbol "$Verbose" requires explicit package name at C:/Perl/lib +/ExtUtils/MM_Any.pm line 1267. Global symbol "$Verbose" requires explicit package name at C:/Perl/lib +/ExtUtils/MM_Any.pm line 1277. Compilation failed in require at C:/Perl/lib/ExtUtils/MM_Unix.pm line +25. Compilation failed in require at inc/Module/Install/Metadata.pm - /Use +rs/ingy/local/lib/perl5/site_perl/5.8.6/Module/Install/Metadata.pm li +ne 197.
Update:
I have traced the problem a little bit further. In ActivePerl::Config the function find_prog gets called in various places. find_prog is correctly imported from ActiveState::Path:
use ActiveState::Path qw(find_prog realpath);
and correctly exported in ActiveState::Path:
use base 'Exporter'; our @EXPORT_OK = qw(path_list find_prog is_abs_path abs_path join_path + rel_path unsymlinked realpath);
Nonetheless find_prog cannot be found. I have replaced all the calls to find_prog with calls to ActiveState::Path::find_prog and then it works. So it looks as if the Export does not work correctly. The question remains:

Why?


holli, /regexed monk/

In reply to Trouble installing a module that uses Module::Install on Active Perl 5.8.8 by holli

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.