Detailed Example for Installing the Chilkat Perl Module on Windows
First Install Strawberry Perl on your Windows System
To install the 64-bit Strawberry Perl portable zip on Windows, follow these steps:
Step 1: Download the Portable Zip
- Go to the [Strawberry Perl website](http://strawberryperl.com/).
- Scroll down to the Portable edition section.
- Download the 64-bit portable ZIP file.
Step 2: Extract the ZIP File
- Navigate to the folder where you downloaded the ZIP file.
- Extract it to a desired location, such as "C:\StrawberryPerl".
- Right-click the ZIP file and select Extract All or use a tool like 7-Zip or WinRAR.
- Right-click the ZIP file and select Extract All or use a tool like 7-Zip or WinRAR.
Step 3: Set Up Environment Variables
To use Strawberry Perl globally from the command line, add it to the "PATH" environment variable:
- Press "Win + S" and search for Environment Variables.
- Click Edit the system environment variables.
- In the System Properties window, click Environment Variables.
- Under System variables, find the "Path" variable and click Edit.
- Add the "perl\bin" directory from the extracted folder to the list:
- For example, if you extracted it to "C:\StrawberryPerl", add:
C:\StrawberryPerl\perl\bin
- For example, if you extracted it to "C:\StrawberryPerl", add:
- Click OK to save the changes.
Step 4: Verify the Installation
- Open a new Command Prompt or PowerShell window.
- Check the Perl version by running:
perl -v
This should display the installed Strawberry Perl version.
Step 5: Test Perl
- Create a simple Perl script to verify the setup:
- Open a text editor and save the following code as "test.pl":
#!perl print "Hello, Strawberry Perl!\n";
- Open a text editor and save the following code as "test.pl":
- Save the file in a directory, e.g., "C:\PerlScripts".
- Run the script:
perl C:\PerlScripts\test.pl
You should see:
Hello, Strawberry Perl!
Tips for Portable Use
- The portable edition does not require installation, so you can move the extracted folder to any location, even a USB drive.
- Ensure you open the correct version (e.g., 64-bit "perl.exe") if multiple versions of Perl are installed on your system.
Install the Chilkat Perl Module on Windows
1. Download
The download contains the following files:
license.txt Makefile.PL MANIFEST META.yml README lib/chilkat.pm lib/chilkat.dll
2. Unzip to any Directory
3. Verify your Perl Version
Make sure the version of Perl matches the version you downloaded (5.18, 5.20, 5.22, 5.24, etc.).
Run the following command to display the Perl version.
perl -version
4. Build and Install
In the newly-created directory, in a DOS or Powershell window, type:
perl Makefile.PL dmake dmake install
If you get a "DMAKE WARNING" that says "use gmake.exe instead", then use gmake:
perl Makefile.PL gmake gmake install
Sample Transcript of DOS Commands
C:\temp\perl\chilkat-perl-5.38-x86_64-mingw32>dir
Volume in drive C is Windows
Volume Serial Number is 2E25-98A0
Directory of C:\temp\perl\chilkat-perl-5.38-x86_64-mingw32
01/01/2025 05:26 PM <DIR> .
01/01/2025 05:26 PM <DIR> ..
09/27/2024 05:08 PM <DIR> lib
01/28/2021 01:45 PM 76,518 license.pdf
12/24/2024 02:20 PM 92 Makefile.PL
10/19/2015 05:48 PM 138 MANIFEST
12/24/2024 02:20 PM 299 META.yml
10/20/2015 10:02 AM 306 README
12/25/2024 07:25 AM 234 test.pl
6 File(s) 77,587 bytes
3 Dir(s) 115,935,490,048 bytes free
C:\temp\perl\chilkat-perl-5.38-x86_64-mingw32>perl Makefile.PL
Checking if your kit is complete...
Looks good
Generating a gmake-style Makefile
Writing Makefile for chilkat
Writing MYMETA.yml and MYMETA.json
C:\temp\perl\chilkat-perl-5.38-x86_64-mingw32>gmake
cp lib/chilkat.dll blib\lib\chilkat.dll
cp lib/chilkat.pm blib\lib\chilkat.pm
C:\temp\perl\chilkat-perl-5.38-x86_64-mingw32>gmake install
Appending installation info to D:\StrawberryPerl\strawberry-perl-5.38.2.2-64bit-portable\perl\lib/perllocal.pod
C:\temp\perl\chilkat-perl-5.38-x86_64-mingw32>perl test.pl
Version: 10.1.1
C:\temp\perl\chilkat-perl-5.38-x86_64-mingw32>dir Volume in drive C is Windows Volume Serial Number is 2E25-98A0 Directory of C:\temp\perl\chilkat-perl-5.38-x86_64-mingw32 01/01/2025 05:26 PM <DIR> . 01/01/2025 05:26 PM <DIR> .. 09/27/2024 05:08 PM <DIR> lib 01/28/2021 01:45 PM 76,518 license.pdf 12/24/2024 02:20 PM 92 Makefile.PL 10/19/2015 05:48 PM 138 MANIFEST 12/24/2024 02:20 PM 299 META.yml 10/20/2015 10:02 AM 306 README 12/25/2024 07:25 AM 234 test.pl 6 File(s) 77,587 bytes 3 Dir(s) 115,935,490,048 bytes free C:\temp\perl\chilkat-perl-5.38-x86_64-mingw32>perl Makefile.PL Checking if your kit is complete... Looks good Generating a gmake-style Makefile Writing Makefile for chilkat Writing MYMETA.yml and MYMETA.json C:\temp\perl\chilkat-perl-5.38-x86_64-mingw32>gmake cp lib/chilkat.dll blib\lib\chilkat.dll cp lib/chilkat.pm blib\lib\chilkat.pm C:\temp\perl\chilkat-perl-5.38-x86_64-mingw32>gmake install Appending installation info to D:\StrawberryPerl\strawberry-perl-5.38.2.2-64bit-portable\perl\lib/perllocal.pod C:\temp\perl\chilkat-perl-5.38-x86_64-mingw32>perl test.pl Version: 10.1.1