Installation of Strawberry Perl on Windows 2022
Tags: perl, programming, beginners
Published: 2022-03-24 08:42:10

**Strawberry Perl** is one of the Windows Perl distributions. Strawberry Perl is easy to install and has the C language compiler [MinGW](https://en.wikipedia.org/wiki/MinGW), a CPAN module installer [cpanm](https://en.perlzemi.com/blog/20101027127859.html) and often used C libraries.

This article is originally [Installation of Strawberry Perl on Windows | Perl ABC](https://en.perlzemi.com/blog/20180808153368.html)

[![](https://en.perlzemi.com/images/strawberry_perl/strawberry_perl_logo.png)](http://strawberryperl.com)

[Strawberry Perl for Windows](http://strawberryperl.com)

### What is Strawbery Perl?

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

[MinGW](https://ja.wikipedia.org/wiki/MinGW) is a [C](https://en.c.perlzemi.com/)/[C++](https://en.wikipedia.org/wiki/C%2B%2B) compiler that can be used on Windows. MinGW is compatible with [gcc](https://en.linux.perlzemi.comhttps://en.perlzemi.com/blog/20201216103956.html) of [Linux](https://en.linux.perlzemi.com/)/[UNIX](https://en.wikipedia.org/wiki/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](https://en.perlzemi.com/blog/20101008127859.html) modules written in C/C++ can be installed on Windows.

The [cpanm](https://en.perlzemi.com/blog/20101027127859.html) 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.

* [Strawberry Perl Releases](http://strawberryperl.com/releases.html)[![](https://en.perlzemi.com/images/strawberry_perl/strawberry_perl_msi.png)](http://strawberryperl.com/releases.html)

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](https://en.perlzemi.com/blog/20080603121251.html). 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.

![](https://en.perlzemi.com/images/commandprompt/commandprompt.png)

Input the following command to display the version of Perl.

<pre>
perl -v
</pre>

And press "Enter".

The version information of Perl is displayed.

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

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.

* [Installation of Active Perl on Windows](https://en.perlzemi.com/blog/20080602121231.html)

#### msys2

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

* [Install msys2 on Windows to use Perl](https://en.perlzemi.com/blog/20180806153350.html)