Compiling Perl Modules on Windows
Compiling Perl Modules for Windows systems includes:
- Executing Makefile.PL
- NMAKE.EXE Test
- Generating .ppd Files
Commands for compiling Perl Modules on Windows Systems:
Ensure you have Visual Studio installed in-order to support the name.exe. For this run VCVARS32.BAT file from VS.
C:\>path | grep -i vc98
C:\>"C:\Program Files\Microsoft Visual Studio\VC98\Bin\VCVARS32.BAT"
Setting environment for using Microsoft Visual C++ tools.
C:\>
Navigate to the folder where your modules are existing:
C:\src\Systems-Windows-Log>perl Makefile.PL
Checking if your kit is complete…
Looks good
Writing Makefile for Systems::Windows::Log
C:\src\Systems-Windows-Log>
Run Nmake.exe
C:\src\Systems-Windows-Log>C:\Tools\bin\NMAKE.EXE
Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.
cp Log.pm blib\lib\Systems\Windows\Log.pm
C:\src\Systems-Windows-Log>C:\Tools\bin\NMAKE.EXE test
Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.
C:\Perl\bin\perl.exe "-Iblib\lib" "-Iblib\arch" test.pl
1..1
ok 1
C:\>
Generate ppd files and have them copied to your ppm repositories:
C:\src\Systems-Windows-Log>C:\Tools\bin\NMAKE.EXE ppd
Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.
C:\src\Systems-Windows-Log>perl C:\perlmod\bin\generate-ppd-files Systems-Windows-Log.ppd
Creating archive file Systems-Windows-Log-1.1.tar.gz …
Copying Systems-Windows-Log-1.1.ppd …
1 File(s) copied
Copying Systems-Windows-Log-1.1.tar.gz …
1 File(s) copied
Done!
C:\src\Systems-Windows-Log>
Note: Verify that ARCHITECTURE NAME="MSWin32-x86-multi-thread-5.8" in the ppd file at PPM repository folder.