Subject: | MB fails with cpan.pm's defaults on windows |
perl 5.8.8-RC1
built from source: mingw (gcc 3.4.5)
winXP pro sp2
The default option for "mbuild_install_build_command" is "./Build" which
fails on windows because the file is not executable. The command should
be "perl Build".
Attached is a patch for FirstTime.pm which changes the default for
"mbuild_install_build_command".
It uses the value from CPAN::Distribution::perl() to ensure the correct
perl binary is called.
Subject: | FirstTime.pm.diff |
480c480,481
< $default = $CPAN::Config->{mbuild_install_build_command} || "./Build";
---
> my($perl) = CPAN::Distribution::perl() or die "Couldn\'t find executable perl\n";
> $default = $CPAN::Config->{mbuild_install_build_command} || "$perl Build";
482c483
< prompt("Do you want to use a different command for './Build install'?
---
> prompt("Do you want to use a different command for './Build'?