Compiling Perl Modules on Windows

Compiling Perl Modules for Windows systems includes:

  1.   Executing Makefile.PL
  2.   NMAKE.EXE Test
  3.   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 FilesMicrosoft Visual StudioVC98BinVCVARS32.BAT"

    Setting environment for using Microsoft Visual C++ tools.

    C:>

    Navigate to the folder where your modules are existing:

    C:srcSystems-Windows-Log>perl Makefile.PL

    Checking if your kit is complete…

    Looks good

    Writing Makefile for Systems::Windows::Log

    C:srcSystems-Windows-Log>

    Run Nmake.exe

    C:srcSystems-Windows-Log>C:ToolsbinNMAKE.EXE

    Microsoft (R) Program Maintenance Utility Version 1.50

    Copyright (c) Microsoft Corp 1988-94. All rights reserved.

    cp Log.pm bliblibSystemsWindowsLog.pm

    C:srcSystems-Windows-Log>C:ToolsbinNMAKE.EXE test

    Microsoft (R) Program Maintenance Utility Version 1.50

    Copyright (c) Microsoft Corp 1988-94. All rights reserved.

    C:Perlbinperl.exe "-Ibliblib" "-Iblibarch" test.pl

    1..1

    ok 1

    C:>

    Generate ppd files and have them copied to your ppm repositories:

    C:srcSystems-Windows-Log>C:ToolsbinNMAKE.EXE ppd

    Microsoft (R) Program Maintenance Utility Version 1.50

    Copyright (c) Microsoft Corp 1988-94. All rights reserved.

    C:srcSystems-Windows-Log>perl C:perlmodbingenerate-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:srcSystems-Windows-Log>

     

    <

    p>Note: Verify that ARCHITECTURE NAME="MSWin32-x86-multi-thread-5.8" in the ppd file at PPM repository folder.

    4 thoughts on “Compiling Perl Modules on Windows

    1. Hello, Gunnala.
      I’m using perl to handle big files (> 5 Gb) in Windows (W2K3 Enterprise Edition) system and its responding “Out of memory”.
      To solve it, I see in some articles the option of compiling perl within “largefiles” enabled.
      I read the “README.win32” document from Perl’s sources, but i don’t see anything about options of compilation (some Linux/Unix use “./Configure -Duselargefiles…”) in Windows 32-systems. Can you help me ? (Obs: I got the Visual C++ 2008 Express). Thanks for your attention.

      1. What operations are you doing with the large files?

        I’d suggest trying 64-bit Perl if that straignt away handles these large files, you’d be all good. W.r.t compiling Perl on Windows, you have to specify the options to the Perl MSI installer. Depending which flavor of Perl you using you need to follow the appropriate supported options while installing the Perl EXE/MSI.

        1. Ok, i’ll convert my compiler machine in 64-bit OS and will install apropriate Perl. Greats for your return.

        2. About your question, i’m using perl to generate statistics within Awstats (www.awstats.org), reading and compiling huge webserver logs. Tks.

    Comments are closed.