========================================================================== How to build Perl under Windows NT 4.0 using Microsoft Visual C++ 6.0: ========================================================================== 1) Download the file http://www.perl.com/CPAN/authors/id/D/DO/DOUGL/PerlCRT-2.05-bin-1-x86-VC.zip (or better) 2) Unpack it, copy the file "PerlCRT.dll" to C:\WinNT\system32 and the file "PerlCRT.lib" to your MS Visual C++ installation "lib" directory (e.g. D:\Programme\MSVS\VC98\lib) 3) Download Perl (e.g. http://www.perl.com/CPAN/src/5.0/perl5.005_03.tar.gz) 4) Unpack it (e.g. using WinZip - be sure to enable "Use folder names"!) to some temporary directory of your choice on drive D: (e.g. D:\Temp) 5) Run "VCVARS32.BAT" in a DOS box (from your MS Visual C++ installation "bin" directory, e.g. D:\Programme\MSVS\VC98\bin\vcvars32.bat) 6) Change directory to ...\perl5.005_03\win32 (in the same DOS box!) 7) Edit the file "Makefile" and make the following changes: * INST_DRV = \Programme * uncomment the line USE_PERLCRT = define * uncomment and fill in EMAIL = name@domain.com (Your Name) 8) Issue the commands "nmake", "nmake test" and "nmake install" 9) Copy the files "tar.exe", "gzip.exe", "gunzip.exe" and "D:\Programme\MSVS\VC98\bin\nmake.exe" to D:\Programme\perl\5.00503\bin 10) Copy the file "PerlCRT.dll" to D:\Programme\perl\5.00503\bin\MSWin32-x86 and "PerlCRT.lib" to D:\Programme\perl (where you can find it easily later) 11) Append the string ";D:\Programme\perl\5.00503\bin;D:\Programme\perl\5.00503\bin\MSWin32-x86" to the "PATH" environment variable in your "System" Control Panel 12) Download the file http://www.perl.com/CPAN/authors/id/GBARR/libnet-1.0607.tar.gz (or better) and unpack it 13) In a DOS box, change directory to the unpacked "libnet" distribution and issue "perl Makefile.PL" 14) Do not configure "libnet" yet, i.e., accept the default at the prompt "Do you want to modify/update your configuration (y|n) ? [no]" 15) Type "nmake", "nmake test" and "nmake install" 16) Enter the command "perl -MCPAN -e shell" 17) Configure "CPAN.pm" as follows, i.e., accept all defaults except for the following entries: ... cache directory? [\.cpan\.] \Temp\CPAN ... gzip program? [] \Programme\perl\5.00503\bin\gzip.exe ... tar program? [] \Programme\perl\5.00503\bin\tar.exe ... make program? [D:\PROGRA~1\MSVS\VC98\BIN\nmake.EXE] nmake.exe ... ftp program? [C:\WINNT\system32\ftp.EXE] ftp.exe ... pager program? [C:\WINNT\system32\more.COM] more.com ... 'make install' command? [] UNINST=1 ... your continent (...) [] 5 ... your country (...) [] 8 Select as many URLs as you like [] 1 Enter another URL or RETURN to quit: [] ftp://ftp.ecrc.net/pub/lang/perl/cpan/ 18) Exit with "q" , edit D:\Programme\perl\5.00503\lib\CPAN\Config.pm and swap the two entries in 'urllist' 19) Restart the "CPAN.pm" tool with "perl -MCPAN -e shell" and type the commands "install MD5", "install CPAN", "reload cpan" and "q" 20) Pack the resulting installation in D:\Programme\perl with WinZip for redistribution (with the options "Include subfolders" and "Save extra folder info" enabled!) FEATURES: - This Perl binary can be installed on any drive (any drive letter) you like (for example for a network installation) simply by extracting it into the root directory of the chosen drive (be sure to enable "Use folder names" in your WinZip program!) and adjusting the "PATH" environment variable (append the string ;D:\Programme\perl\5.00503\bin;D:\Programme\perl\5.00503\bin\MSWin32-x86 to it for example) RESTRICTIONS: - When installing additional modules, you must ALWAYS unpack and build them on the same drive as the one where you installed Perl! (In particular, you have to switch to that drive before calling "perl -MCPAN -e shell"!) NOTES: - The warnings while installing new modules (from "perl Makefile.PL") about Perl and Config.pm thinking differently about where Perl lies are normal, you can safely ignore them - provided you are installing from the same drive as Perl resides!