The problem most of us were having is the location of nmake
find the C:\Perl\lib\CPAN\CPAN.pm
Code:
# This is CPAN.pm's systemwide configuration file. This file provides
# defaults for users, and the values can be changed in a per-user
# configuration file. The user-config file is being looked for as
# ~/.cpan/CPAN/MyConfig.pm.
$CPAN::Config = {
'build_cache' => q[10],
'build_dir' => q[\.cpan\build],
'cache_metadata' => q[1],
'cpan_home' => q[\.cpan],
'ftp' => q[C:\WINDOWS\system32\ftp.EXE],
'ftp_proxy' => q[],
'getcwd' => q[cwd],
'gpg' => q[],
'gzip' => q[],
'histfile' => q[\.cpan\histfile],
'histsize' => q[100],
'http_proxy' => q[],
'inactivity_timeout' => q[0],
'index_expire' => q[1],
'inhibit_startup_message' => q[0],
'keep_source_where' => q[\.cpan\sources],
'lynx' => q[],
'make' => q[C:\Program Files\Microsoft Visual Studio\VC98\bin\nmake.EXE],
'make_arg' => q[],
'make_install_arg' => q[],
'makepl_arg' => q[],
'ncftp' => q[],
'ncftpget' => q[],
'no_proxy' => q[],
'pager' => q[C:\WINDOWS\system32\more.COM],
'prerequisites_policy' => q[ask],
'scan_cache' => q[atstart],
'shell' => q[],
'tar' => q[],
'term_is_latin' => q[1],
'unzip' => q[],
'urllist' => [],
'wget' => q[],
};
1;
__END__
notce the the line >>> 'make' => q[C:\Program Files\Microsoft Visual Studio\VC98\bin\nmake.EXE],
change this line to 'c:\perl\bin\nmake.exe' and make sure the 'nmake.exe' is there. of course if your perl path is not c:\perl, change it to your perl path.
this version of perl does not like the long name format (C:\program files\), so make sure, if your path does have long names, to use single quotes (').
this file is automatically created the first time you goto the CPAN shell , becuase it has an auto configure feature which you can use or not.