DEV Community

Yuki Kimoto - SPVM Author
Yuki Kimoto - SPVM Author

Posted on

Installation of Strawberry Perl on Windows 2022

Strawberry Perl is one of the Windows Perl distributions. Strawberry Perl is easy to install and has the C language compiler MinGW, a CPAN module installer cpanm and often used C libraries.

This article is originally Installation of Strawberry Perl on Windows | Perl ABC

Strawberry Perl for Windows

What is Strawbery Perl?

Strawbery Perl can be downloaded without registration. Older versions of Perl are available.

MinGW is a C/C++ compiler that can be used on Windows. MinGW is compatible with gcc of Linux/UNIX.

gmake is also available. gmake is a port of GNU make to Windows.

For the reason that Strawbery Perl has gcc and gmake, many CPAN modules written in C/C++ can be installed on Windows.

The cpanm command allows you to install CPAN modules quickly and easily. If you create a cpanfile required modules are defined , you can install all modules you need at once.

Download Strawberry Perl

Assuming Windows 10, I explain how to download and install Strawberry Perl. The way to download and install is almost the same for older versions of Windows(Windows 8, Windows 7).

Let's download and install Strawberry Perl. The latest version of Perl 2022 is Perl 5.32.

Click Strawberry Perl 5.32 64bit MSI installer of the following link to download Strawberry Perl.

MSI installer is the default installer for Windows.

The version number at the end(5.32.x.y) may be a little different, but don't worry.

In most cases, the 64-bit version of Windows will work, but if you need the 32-bit version, download the 32-bit version of Strawberry Perl.

Installation of Strawberry Perl

Double-click the downloaded installer file of Strawberry Perl.

The installer will start. It may take some time to calculate the free space. Please wait.

Press "Next" to proceed.

A check box that hears "I accept the terms in the License Agreement" will appear. Check it and press "Next".

Press "Next" to proceed, and finally click "Install" to start Strawberry Perl.

You'll see a dialog here, "Do you want to allow apps from this unknown publisher to make changes to your device?". Click "Yes".

It will take about 5 minutes. Please wait.

When the progress bar is full, the Strawberry Perl installation is complete.

Press "Finish" to close the dialog. A Readme will be displayed. Close it.

Check the Installation of Strawberry Perl

Let's check if Strawberry Perl is installed.

Command Prompt

At first, you execute Command Prompt. Command Prompt is a Windows CUI tool.

The command prompt can be executed from:

"Start Menu" | "List of Apps" | "Windows System Tools" | "Command Prompt".

A black screen will appear. This is Command Prompt.

Input the following command to display the version of Perl.

perl -v

And press "Enter".

The version information of Perl is displayed.

This is perl 5, version 32, subversion 0 (v5.32.1) built for MSWin32-x64-multi-thread

If you can see this, the installation of Strawberry Perl is succeed.

Trouble Shooting

If Strawberry Perl doesn't work, see the following trouble shooting.

The Priority of PATH Environment Variable

If another Perl such as ActivePerl or Strawberry Perl 32bit is already installed, the Strawberry Perl installed in this article may not work due to the priority problem of the PATH environment variable.

Move the path of Perl you want to use to the front of other Perls.

The ways of Installation other than MSI

The ways to install Strawberry Perl other than MSI.

ZIP Version of Strawberry Perl

ZIP Version of Strawberry Perl is also prepared.

Portable Version of Strawberry Perl

Portable Version of Strawberry Perl is also prepared.

Other Ways to Install Perl on Windows

See the following links to known other ways to install Perl on Windows.

ActivePerl

ActivePerl is another Windows Perl distribution.

msys2

If you want a Linux pseudo environment on Windows, you can use msys2.

Top comments (0)