1 package Module::Install::Win32;
4 use Module::Install::Base;
6 use vars qw{$VERSION @ISA $ISCORE};
9 @ISA = qw{Module::Install::Base};
13 # determine if the user needs nmake, and download it if needed
16 $self->load('can_run');
17 $self->load('get_file');
22 $Config::Config{make} and
23 $Config::Config{make} =~ /^nmake\b/i and
24 ! $self->can_run('nmake')
27 print "The required 'nmake' executable not found, fetching it...\n";
29 require File::Basename;
30 my $rv = $self->get_file(
31 url => 'http://download.microsoft.com/download/vc15/Patch/1.52/W95/EN-US/Nmake15.exe',
32 ftp_url => 'ftp://ftp.microsoft.com/Softlib/MSLFILES/Nmake15.exe',
33 local_dir => File::Basename::dirname($^X),
35 run => 'Nmake15.exe /o > nul',
36 check_for => 'Nmake.exe',
40 die <<'END_MESSAGE' unless $rv;
42 -------------------------------------------------------------------------------
44 Since you are using Microsoft Windows, you will need the 'nmake' utility
45 before installation. It's available at:
47 http://download.microsoft.com/download/vc15/Patch/1.52/W95/EN-US/Nmake15.exe
49 ftp://ftp.microsoft.com/Softlib/MSLFILES/Nmake15.exe
51 Please download the file manually, save it to a directory in %PATH% (e.g.
52 C:\WINDOWS\COMMAND\), then launch the MS-DOS command line shell, "cd" to
53 that directory, and run "Nmake15.exe" from there; that will create the
54 'nmake.exe' file needed by this module.
56 You may then resume the installation process described in README.
58 -------------------------------------------------------------------------------