Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Trouble installing a module that uses Module::Install on Active Perl 5.8.8

by holli (Abbot)
on May 19, 2006 at 08:28 UTC ( [id://550446]=perlquestion: print w/replies, xml ) Need Help??

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

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/

Replies are listed 'Best First'.
Re: Trouble installing a module that uses Module::Install on Active Perl 5.8.8
by PodMaster (Abbot) on May 19, 2006 at 08:56 UTC
    Hi :D

    Undefined subroutine &ActivePerl::Config::find_prog called at C:/Perl/site/lib/ActivePerl/Config.pm line 70. suggests its a problem in ActivePerl::Config, which is new from ActiveState (only comes with activestate). So you should examine it, report to ActiveState.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Re: Trouble installing a module that uses Module::Install on Active Perl 5.8.8
by Herkum (Parson) on May 19, 2006 at 12:44 UTC

    Funny that you should mention this, it is actually a problem with Module::Install running with ActivePerl.

    You need to update your version of Module::Install, the current one is 0.62 and that fixed my problems.

      Actually I have version 0.62 installed. :-/


      holli, /regexed monk/

        The documentation said that it was fixed in Version 0.61, if you say that it is not working with 0.62 then try using 0.61 and see what happens (You can look it up in the Changes file of the Module::Install distribution).

        Activestate has done a good job of porting stuff to Windows but it is never going to be more versatile than a *NIX port of Perl. That is just one of things us Windows guys have to live with... :)

Re: Trouble installing a module that uses Module::Install on Active Perl 5.8.8
by randyk (Parson) on May 20, 2006 at 04:02 UTC
    On about line 175 of inc/Module/Install.pm, there's a line:
    local @INC = ($path, @INC);
    Try commenting that out to see if that fixes the problem.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://550446]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2024-03-28 19:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found